0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-23 19:31:53 +00:00
Commit Graph

961 Commits

Author SHA1 Message Date
Stefan Siegl
a2604e2749 Add test on php_v8js_v8_unset_property. 2014-10-19 15:15:20 +00:00
Stefan Siegl
f8fc35d4c6 Add test on php_v8js_v8_write_property. 2014-10-19 15:03:29 +00:00
Stefan Siegl
492f87cd5b Test exception branch of php_v8js_v8_has_property. 2014-10-19 14:48:11 +00:00
Stefan Siegl
51930e7bca Merge branch 'issue-104', closes #104 2014-10-19 12:42:57 +00:00
Stefan Siegl
c339d51924 Drop old-age PHP_V8_API_VERSION #ifdef 2014-10-19 12:20:10 +00:00
Stefan Siegl
f6310f9994 Get rid of V8JS_NEW macro. 2014-10-19 11:58:21 +00:00
Stefan Siegl
16af153c3e Merge branch 'cscott/issue-64' (ctx_lifecycle test).
Test adapted to current behaviour of V8Js, that the situation is
properly handled, but not by keeping objects valid, but by
invalidating all of them.
2014-10-18 20:28:06 +00:00
Stefan Siegl
e3d859d9d7 Merge pull request #112 from sameoldmadness/install-depot_tools
v8 compliation requires gclient
2014-09-28 23:20:46 +02:00
Roman Paradeev
34a9e9849e v8 compliation requires gclient
http://dev.chromium.org/developers/how-tos/install-depot-tools
2014-09-29 02:59:36 +06:00
Stefan Siegl
79aa6a179c Merge pull request #111 from sasezaki/patch-1
add PHP 5.6 to .travis.yml
2014-09-27 18:05:36 +02:00
kazusuke sasezaki
67edd253f9 add PHP 5.6 to .travis.yml 2014-09-28 00:29:41 +09:00
Stefan Siegl
516770ad57 Merge pull request #110 from stesie/fix-tests-php-5.6.0
Fix tests for php 5.6.0
2014-09-21 23:41:43 +02:00
Stefan Siegl
5a78a76d41 Adapt unwind tests for PHP 5.6 style error messages
PHP 5.6 has more detailed error messages, i.e. it says
"on null" instead of "on a non-object".  Replaced this
particular part by a %s match to match both possibilities
so the test suite passes on PHP 5.6 as well as older
versions.
2014-09-21 20:34:10 +00:00
Stefan Siegl
edb4679223 Adapt var_dump test new php versions.
Newer versions of PHP in 5.4 and 5.5 line add micro seconds
precision to datetime representations.
This adds a regular expression to ignore the .000000 suffix.
2014-09-21 19:49:24 +00:00
Stefan Siegl
ab5b0ae7bf Merge pull request #109 from stesie/fix-double-addref
Don't Z_ADDREF_P twice on same exported object
2014-09-21 01:52:36 +02:00
Stefan Siegl
8b88b928c2 Don't Z_ADDREF_P twice on same exported object. 2014-09-21 01:48:07 +02:00
Stefan Siegl
7d13c75073 efree resource memory 2014-09-20 22:52:48 +02:00
Stefan Siegl
d8a6467903 TSRM/ZTS fixes 2014-09-20 22:52:47 +02:00
Stefan Siegl
47b433efe8 Restore clean unwind state after unwinding. 2014-09-20 18:42:09 +00:00
Stefan Siegl
cd8542745c Unwind stack step by step, fixes #95 2014-09-20 17:58:41 +02:00
Stefan Siegl
c91f96a439 Merge pull request #108 from stesie/fix-commonjs-module-reuse
Fix module caching, closes #107
2014-09-20 15:05:31 +02:00
Stefan Siegl
11f7311ab8 Use php_v8js_compile_script for checkString. 2014-09-20 12:22:56 +00:00
Stefan Siegl
9cb3711c66 Merge remote-tracking branch 'rosmo/compile-script-201409', closes #95 2014-09-20 12:22:31 +00:00
Stefan Siegl
eda74908cc Fix module caching, closes #107
Use v8::Persistent handle to keep module instances around.

Objects cannot be shared between isolates anyhow, hence moved
modules_loaded map from global V8JSG structure to php_v8js_ctx.

Besides fixes a use-after-free on normalised_module_id.
2014-09-19 22:36:27 +00:00
Stefan Siegl
129052a176 Add pointer to docker repo 2014-09-19 18:54:44 +02:00
Stefan Siegl
751b612d8d Suggest libplatform install via mri-script 2014-09-19 18:50:22 +02:00
Stefan Siegl
7228e31eee Remove note on v8 not being buildable with g++ 4.8
The issue on code.google.com is long closed.
Besides I've just tried and it just works.
2014-09-18 23:28:12 +02:00
Stefan Siegl
db8c1bc94d Revert "Add build-status badge again"
This reverts commit 702302d9f6.
2014-09-17 23:20:20 +02:00
Stefan Siegl
702302d9f6 Add build-status badge again
My Jenkins box has a SSL certificate now, hence it should
work without caching effects finally.
2014-09-17 23:16:19 +02:00
Stefan Siegl
3702e64611 Merge pull request #105 from stesie/fix-init-platform
Call V8::InitializePlatform as needed, fixes builds >= 3.29.36
2014-09-17 19:58:27 +02:00
Stefan Siegl
06371e4126 Include libplatform.h only for v8 >= 3.29.36 2014-09-17 16:47:33 +02:00
Stefan Siegl
3843fc1b5c Remove stray debug-echo 2014-09-17 16:33:03 +02:00
Stefan Siegl
14600d3be3 Initialize v8 platform as needed
See http://comments.gmane.org/gmane.comp.lang.javascript.v8.general/8029
for more information.
2014-09-17 00:45:24 +02:00
Taneli Leppa
200c16c30e Fixed script destructor and free resource struct when done. 2014-09-16 17:11:13 +03:00
Taneli Leppa
de8b0666a6 Some changes to how V8 contexts are managed. 2014-09-16 17:10:18 +03:00
Taneli Leppa
7310c93c1e Deprecate V8Js::checkString() in favour of compileString() and add tests. 2014-09-16 17:10:15 +03:00
Taneli Leppa
bd7d649d90 Added new functions V8Js::compileString() and V8Js::executeScript().
Conflicts:

	php_v8js_macros.h
2014-09-16 17:09:58 +03:00
Stefan Siegl
48765bcc97 Merge pull request #102 from stesie/dispose-isolate
Dispose isolate on V8Js object destruction
2014-09-16 16:02:35 +02:00
Stefan Siegl
361dd4185c Fix some memory leaks. 2014-08-11 15:09:02 +02:00
Stefan Siegl
0334ba64fa TSRM/ZTS fixes 2014-08-11 14:25:39 +02:00
Stefan Siegl
ebcb6dc211 Keep track of V8Object/V8Function instances
Disallow access to these once the V8Js object has been destroyed.
2014-08-11 03:11:02 +02:00
Stefan Siegl
a72a180596 Keep a list of disposed isolates and make sure not to use disposed isolates. 2014-08-10 23:48:54 +02:00
Stefan Siegl
133ad4a7b5 Merge remote-tracking branch 'rosmo/dispose-isolate' 2014-08-10 22:13:47 +02:00
Stefan Siegl
3947d8690c zend_fetch_class_by_name is not available in PHP 5.3 2014-08-10 17:59:15 +02:00
Stefan Siegl
50b36d2cf5 Don't explicitly indicate constructor, let V8 figure out
The GetConstructor function was removed from v8::Object which
would require some work to find out.  But V8 can do it
internally, so just leave it to V8 :)
2014-08-10 13:58:08 +02:00
Stefan Siegl
50fdfc5c88 Add test on constructor get-accessor. 2014-08-10 13:53:10 +02:00
Stefan Siegl
9ead20823f GetConstructor method was removed, use GetConstructorName and instanciate on our own 2014-08-10 13:36:54 +02:00
Stefan Siegl
137a6732c6 IdleNotification is on Isolate now 2014-08-10 13:36:07 +02:00
Stefan Siegl
e25e5264f6 Make compatible with V8 3.28.23, fixes #99 2014-08-10 11:57:20 +02:00
Taneli Leppa
a8ddf9daef Also perform isolate exit on fatal error abort. 2014-07-01 10:49:29 +03:00