Stefan Siegl
9275600ac9
Refactor php.ini bool option parsing
2015-09-23 20:01:43 +02:00
Stefan Siegl
f22ce7046d
Fix duplicate context declaration
2015-09-23 19:56:48 +02:00
Stefan Siegl
83f51e5021
Merge pull request #156 from stesie/php-exception-behaviour
...
PHP->JS exception propagation
2015-09-23 19:40:23 +02:00
Stefan Siegl
6d31da2ab7
Mention compat_php_exceptions php.ini switch
2015-09-23 19:39:41 +02:00
Stefan Siegl
8934db6dec
Add v8js.compat_php_exceptions INI switch
2015-09-23 19:19:11 +02:00
Stefan Siegl
5f6d9aee2d
Don't terminate execution repeatedly
2015-09-22 22:36:50 +02:00
Stefan Siegl
d2720f4929
Build Status badge, yet another try :)
2015-09-02 10:21:34 +02:00
Stefan Siegl
2a47d36d66
Merge pull request #165 from maryo/patch-1
...
Update README.Win32.md
2015-09-01 23:13:42 +02:00
Marek Štípek
14aca623fa
Update README.Win32.md
2015-09-01 22:13:53 +02:00
Stefan Siegl
922d7da933
Add MIT license badge
2015-09-01 19:11:56 +02:00
Stefan Siegl
9b36db78e8
Merge pull request #164 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2015-09-01 19:05:31 +02:00
The Gitter Badger
7d82bb05e4
Added Gitter badge
2015-09-01 16:54:38 +00:00
Stefan Siegl
aa0b5fd598
Bump version to 0.2.4
2015-09-01 17:18:12 +02:00
Stefan Siegl
fa352e216f
Merge pull request #163 from stesie/cache-array-tmpl
...
Cache pseudo-Array FunctionTemplate as well
2015-09-01 16:14:48 +02:00
Stefan Siegl
71f4b7ba05
Cache pseudo-Array FunctionTemplate as well
2015-09-01 15:53:21 +02:00
Stefan Siegl
31d1feb7da
Bump PHP_V8JS_VERSION #define as well.
2015-08-27 16:25:59 +02:00
Stefan Siegl
3c25bb2989
Bump version to 0.2.3
2015-08-27 16:21:39 +02:00
Stefan Siegl
415b64c7e5
Merge pull request #161 from stesie/method-tmpl-cache
...
Cache v8::FunctionTemplates created by v8js_named_property_callback
2015-08-27 15:29:19 +02:00
Stefan Siegl
78dd0a9ff0
Cache v8::FunctionTemplates created by v8js_named_property_callback
2015-08-27 14:46:27 +02:00
Stefan Siegl
53995ac616
Make FLAG_FORCE_ARRAY not affect V8Function objects, #closes 160
2015-08-26 18:41:38 +02:00
Stefan Siegl
de0931a90b
Bump version to 0.2.2
2015-08-26 11:19:26 +02:00
Stefan Siegl
264bd7024d
Merge pull request #159 from stesie/issue-158
...
Re-use v8js_ctx context for V8Function calls, closes #158
2015-08-26 11:08:55 +02:00
Stefan Siegl
ae33f6a9ab
Re-use v8js_ctx context for V8Function calls, closes #158
2015-08-26 09:38:30 +02:00
Stefan Siegl
e6d2de2c4f
Merge pull request #157 from uniconstructor/patch-1
...
Readme: fixed link to Google v8 repository
2015-08-25 22:04:22 +02:00
Smirnov Ilia
96a1b3848a
fixed link to Google v8 repository
...
fixed link to Google v8 repository (https://github.com/v8/v8 is deprecated)
2015-08-25 20:58:51 +03:00
Stefan Siegl
790735f04a
Fix tests/php_exceptions_005.phpt
2015-08-23 19:30:47 +02:00
Stefan Siegl
c033000aea
Fix tests/exception_propagation_2.phpt
...
The test relied on weird behaviour that PHP exceptions shouldn't stop
JavaScript code execution. Since JavaScript execution is now stopped,
the JavaScript catch handler is not executed anymore.
2015-08-23 18:05:46 +02:00
Stefan Siegl
829a98e064
Mention (new) exception behaviour in README
2015-08-23 17:56:26 +02:00
Stefan Siegl
b7dde1b1db
Handle thrown PHP objects, that are no exceptions
2015-08-23 17:40:27 +02:00
Stefan Siegl
f7c33539c2
Improve PHP->JS->PHP exception back propagation
2015-08-23 15:09:21 +02:00
Stefan Siegl
462eb623b3
Allow PHP exception to JS propagation
2015-08-22 15:16:02 +02:00
Stefan Siegl
f7a592052f
Store flags in v8js_ctx class instead of v8 hidden value
2015-08-21 16:12:12 +02:00
Stefan Siegl
187b97060f
Stop JS execution on PHP exceptions, refs #144
2015-08-21 15:55:52 +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
Stefan Siegl
5018192123
Move libplatform.h include farther down
...
If it is included before php.h, PHP_V8_API_VERSION is not
defined if V8Js is built as a PHP built-in extension.
2015-08-02 18:15:28 +02:00
Stefan Siegl
6bbe4d932b
remove useless zero-initializations (immediately overridden afterwards)
2015-08-01 19:58:44 +02:00
Stefan Siegl
441f7b7fab
v8js_commonjs_split_terms: use pointer comparison instead of strlen
...
The strlen usage on term obviously was wrong here, since the term
string is not null-terminated at that place.
2015-08-01 19:54:23 +02:00
Stefan Siegl
cedcac1318
skip useless estrdup/efree cycle
...
The garbage collector cannot free the object as it is allocated
on the local stack.
2015-08-01 19:45:21 +02:00
Stefan Siegl
f61c11f995
declare base & identifier const
2015-08-01 19:41:50 +02:00