0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 02:38:40 +00:00
Commit Graph

510 Commits

Author SHA1 Message Date
Stefan Siegl
8a3124ee2a handle new IS_INDIRECT and IS_UNDEF in zval->js export 2015-10-02 23:19:32 +02:00
Stefan Siegl
0a93aa2306 Fix object name setting 2015-10-02 22:29:54 +02:00
Stefan Siegl
afa52c07bc Remove hard-coded full pathnames from test 2015-10-02 22:29:27 +02:00
Stefan Siegl
71c43b6377 don't declare v8js_named_property_callback inline 2015-10-02 22:09:56 +02:00
Stefan Siegl
fcb056b5a5 Handle access of undeclared properties 2015-09-28 22:57:00 +02:00
Stefan Siegl
cbbce91ffd Rename constructor functions to __construct 2015-09-28 22:56:22 +02:00
Stefan Siegl
4002c3c1ae pass const char* instead of zend_string* 2015-09-28 22:44:30 +02:00
Stefan Siegl
c6136ec3d2 Fix globals ptr passing wrt. timer thread 2015-09-28 22:03:24 +02:00
Stefan Siegl
fd32ec0fa9 PHP7 adapt: fix V8JsScriptException getters 2015-09-03 23:38:57 +02:00
Stefan Siegl
e995708d6d PHP7 adapt: fix export of public properties on derived classes 2015-09-03 23:12:19 +02:00
Stefan Siegl
486eb697f8 PHP7 adapt: fix getExtensions return array keys 2015-08-30 15:33:51 +02:00
Stefan Siegl
cfb1756fd7 PHP7 adapt: fix double free 2015-08-30 02:19:48 +02:00
Stefan Siegl
794da39882 PHP7 adapt: handle ZEND_WRONG_PROPERTY_INFO special ptr 2015-08-30 02:08:38 +02:00
Stefan Siegl
1e8ce5a609 PHP7 adapt fix: use zend_hash_find_ptr on ce->function_table 2015-08-30 00:53:56 +02:00
Stefan Siegl
592d6528ca PHP7 adapt: fix zend_string memory leaks 2015-08-30 00:26:55 +02:00
Stefan Siegl
19a67118b5 PHP7 adapt: fix zend_register_resource/compileString 2015-08-29 21:56:29 +02:00
Stefan Siegl
a91d2bc413 PHP7 adapt: fix registerExtension 2015-08-29 21:45:59 +02:00
Stefan Siegl
11155a6a51 PHP7 adapt: changed fatal error messages 2015-08-29 21:21:43 +02:00
Stefan Siegl
eca7656b7d PHP7 adapt: fix setModuleLoader 2015-08-29 21:00:13 +02:00
Stefan Siegl
31bafd052d c->properties is NULL anyways (due to ecalloc) 2015-08-29 20:20:09 +02:00
Stefan Siegl
b21acf770a PHP7 adapt: no fallback property_info any longer 2015-08-29 20:19:44 +02:00
Stefan Siegl
49acfc6f22 Adapt ctx_lifetime test to PHP7: changed exception handling 2015-08-29 20:19:22 +02:00
Stefan Siegl
fe7e097d10 PHP7 adapt: use zend_string 2015-08-29 20:19:04 +02:00
Stefan Siegl
a0f3c2302c PHP7 adapt: initialize c->std.handlers as needed 2015-08-29 18:52:30 +02:00
Stefan Siegl
fd6eeddc52 Adapt to PHP7 2015-08-29 17:48:26 +02:00
Stefan Siegl
5477d780a3 PHP7 adapt v8js_v8object_class.cc 2015-08-29 16:47:37 +02:00
Stefan Siegl
916e068c4a PHP7 adapt v8js_object_export.cc 2015-08-29 11:57:53 +02:00
Stefan Siegl
909e3f004d Adapt to PHP7: v8js_convert.cc, v8js_exception.cc, v8js_methods.cc 2015-08-28 21:05:16 +02:00
Stefan Siegl
b8c9badddb Adapt v8js_class.cc to PHP7 API 2015-08-25 23:38:09 +02:00
Stefan Siegl
3fa38e7b87 v8js_class.cc pt.2 for PHP7, zend_object_store_get_object stuff & script resource 2015-08-25 00:24:04 +02:00
Stefan Siegl
a10e601af3 adapt v8js_ctx custom object creation to PHP7 API 2015-08-24 22:19:15 +02:00
Stefan Siegl
f6105ff3cf v8js_class pt.1: pending_exception, module_loader, weak_objects, jsext 2015-08-24 22:05:27 +02:00
Stefan Siegl
8e84f99830 Adapt v8js.cc to PHP7 API 2015-08-24 21:35:29 +02:00
Stefan Siegl
2d0aa9b2cc adapt PHPJS_OBJECT_KEY from zval* to zend_object* 2015-08-24 21:13:35 +02:00
Stefan Siegl
5acc64610d Adapt v8js_array_access.cc to PHP7 API 2015-08-24 20:43:24 +02:00
Stefan Siegl
8389e126b5 adapt to changed ZVAL_STRING/ZVAL_STRINGL/RETVAL_STRINGL macros 2015-08-23 21:14:49 +02:00
Stefan Siegl
45f7e18624 Remove conditional compilation for PHP_VERSION_ID < 7.0.0 2015-08-23 21:10:47 +02:00
Stefan Siegl
cef7b0beba Remove #include of no-more-existing file 2015-08-23 20:22:46 +02:00
Stefan Siegl
e07ea80805 Update README.Linux.md common pitfalls
* recent V8 versions need to be compiled with snnapshot=off to be usable
* use more meaningful destination path
2015-08-19 10:46:48 +02:00
Stefan Siegl
94fb367b15 Merge pull request #154 from rosmo/libplatform-x64
Check lib64 dir for libplatform as well.
2015-08-12 18:59:40 +02:00
Taneli Leppa
9f082a057b Check lib64 dir for libplatform as well. 2015-08-12 18:26:23 +03:00
Stefan Siegl
35e5fbb1fc Don't call V8::ShutdownPlatform for V8 < 3.29.36 2015-08-08 12:12:18 +02:00
Stefan Siegl
829bac9ddc Merge pull request #150 from stesie/issue-140
Fix module caching & memory leaks
2015-08-03 08:40:26 +02:00
Stefan Siegl
204cc0fa6a Merge pull request #151 from stesie/mem-leaks-001
Memory Leak Fixes
2015-08-03 08:40:20 +02:00
Stefan Siegl
0deb7d1802 Track list of valid script object in ctx
We don't know whether the V8Js object dtor or the script (resource)
dtor is called first.  Nevertheless they depend on each other as
we must not simply Reset the persistent v8::Script if the v8::Isolate
was disposed before.

Now the V8Js dtor iterates over all script resources and resets the
persistent v8::Script instances; leaving an invalidated resource
object (which cannot be called anymore).
2015-08-02 23:35:47 +02:00
Stefan Siegl
cb7a1b8d6a Dispose persisted v8::Script object on resource dtor (memory leak) 2015-08-02 22:36:23 +02:00
Stefan Siegl
1f56c8e43c Don't only run dtor, really delete the object 2015-08-02 21:26:18 +02:00
Stefan Siegl
981f502303 ignore run-tests.php valgrind result files 2015-08-02 19:43:58 +02:00
Stefan Siegl
dd4996cd56 delete v8::Extension instance on shutdown 2015-08-02 19:42:42 +02:00
Stefan Siegl
4650273c90 Shutdown V8 on GSHUTDOWN 2015-08-02 19:42:03 +02:00