@@ -26,11 +26,11 @@ provides an accurate native V8 C++ API implementation available from PHP.
26
26
- multiple isolates and contexts at the same time;
27
27
- it works;
28
28
29
- With this extension almost all what native V8 C++ API provides can be used. It provides a way to pass php scalars,
29
+ With this extension almost all that native V8 C++ API provides can be used. It provides a way to pass php scalars,
30
30
objects and function to V8 runtime and specify interaction with passed values (objects and functions only, as scalars
31
31
become js scalars too). While specific functionality will be done in PHP userland rather then in C/C++ this extension,
32
- it let get into V8 hacking faster, reduces time costs and let have more maintainable solution. And it doesn't make any
33
- assumptions for you so you are the boss , it does exactly what you ask for .
32
+ it lets you get into V8 hacking faster, reduces time costs and gives you a more maintainable solution. And it doesn't
33
+ make any assumptions for you, so you stay in control , it does exactly what you ask it to do .
34
34
35
35
With php-v8 you can even implement nodejs in PHP. Not sure whether anyone should/will do this anyway, but it's doable.
36
36
@@ -55,8 +55,8 @@ $result = $script->Run($context);
55
55
echo $result->ToString($context)->Value(), PHP_EOL;
56
56
```
57
57
58
- which will output ` Hello, World! ` . See how it shorter and readable from that C++ version? And it also doesn't limit you
59
- from V8 API utilizing to implement more amazing stuff.
58
+ which will output ` Hello, World! ` . See how it's shorter and readable from that C++ version? And it also doesn't limit
59
+ you from V8 API utilizing to implement more amazing stuff.
60
60
61
61
62
62
## Installation
@@ -103,25 +103,6 @@ $ sudo make install
103
103
- To track memory usage you may want to use ` smem ` , ` pmem ` and even ` lsof ` to see what shared object are loaded
104
104
and ` free ` to display free and used memory in the system.
105
105
106
-
107
- ## Edge cases:
108
-
109
- ### Templates recursion:
110
-
111
- When you set property on any ` Template ` (` ObjectTemplate ` or ` FunctionTemplate ` ) it shouldn't lead to recursion during
112
- template instantiation while it leads to segfault and for now there are no reasonable way to avoid this on extension
113
- level (probably, some wrapper around ` ObjectTemplate ` and ` FunctionTemplate ` will solve this.
114
-
115
- Known issues demo:
116
-
117
- ``` php
118
- $isolate = new V8\Isolate();
119
-
120
- $template = new V8\ObjectTemplate($isolate);
121
-
122
- $template->Set('self', $template); // leads to segfault
123
- ```
124
-
125
106
## License
126
107
127
108
Copyright (c) 2015-2016 Bogdan Padalko
< ; [email protected] > ;
0 commit comments