0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-14 04:58:42 +00:00
Commit Graph

889 Commits

Author SHA1 Message Date
Stefan Siegl
3c5508b956 Provide correct "this" on V8Object method invocation, closes #185 2015-12-26 12:16:17 +01:00
Stefan Siegl
d9e4ae5abe Bump version to 0.4.0 2015-12-07 13:26:44 +01:00
Stefan Siegl
28f061101e Merge pull request #184 from stesie/cust-module-normalisation
Allow custom module path normalisation
2015-12-06 14:48:50 +01:00
Stefan Siegl
67a9de01bd Allow custom module normalisation 2015-12-06 13:55:13 +01:00
Stefan Siegl
f258980399 Accept empty string as module source
This might be perfectly valid, if you're using a third-party module,
which requires a module yet doesn't use it in the code paths hit
and hence you just want to stub it out.
2015-12-06 13:25:43 +01:00
Stefan Siegl
4853c6d17f Set script identifier as String, not Symbol
Otherwise long module identifiers might get cut off.
2015-12-06 13:23:14 +01:00
Stefan Siegl
bf58fe67c1 wrap module loading in zend_try/zend_catch, closes #178 2015-12-04 22:09:04 +01:00
Stefan Siegl
39fff2301e Use module id as JsFileName for V8
This way the information to V8JsScriptException instances are way
more clear since they contain the name of the module that caused
the exception.
2015-12-04 21:46:54 +01:00
Stefan Siegl
2f0b8e2873 Make var_dump command available to modules as well 2015-12-04 21:37:51 +01:00
Stefan Siegl
ad4d8e4110 v8js.cc: fix file permissions 2015-12-04 21:14:06 +01:00
Stefan Siegl
09ac23c5a3 Bump version to 1.0.0 2015-12-04 21:07:47 +01:00
Stefan Siegl
227ad57163 prefer V8JS_ZSTR over V8JS_STRL(Z_STRVAL), refs #180 2015-12-04 20:14:47 +01:00
Stefan Siegl
d9eb68b6f9 use ZSTR_LEN, ZSTR_VAL where possible, refs #180 2015-12-04 19:55:20 +01:00
Stefan Siegl
97a9a2cc74 tests/pthreads_001: don't test pthread ext internals 2015-12-04 19:22:29 +01:00
Stefan Siegl
059e0500fb Merge remote-tracking branch 'origin/master' into php7 2015-11-29 12:21:40 +01:00
Stefan Siegl
f73abfac62 Merge pull request #177 from stesie/fix-vardump-test
Fix tests/var_dump.phpt
2015-11-28 17:31:19 +01:00
Stefan Siegl
670554306a Fix tests/var_dump.phpt
Recent V8 versions (e.g. 4.8.253 or 4.9.19) consider
`IsFunction() = true` for Closure objects from PHP; but earlier
versions didn't.

This ensures consistent var_dump behaviour (sticking to the
behaviour with older V8 versions).
2015-11-28 15:27:35 +01:00
Stefan Siegl
4376d59942 Merge pull request #175 from kynx/readme-osx
Updated README.MacOS to recommend installing extension via brew
2015-11-20 21:53:09 +01:00
Matt Kynaston
e5ee35a30e Updated README.MacOS to recommend installing extension via brew 2015-11-20 18:19:23 +00:00
Stefan Siegl
ff172f48ce Add link to omahaproxy 2015-11-20 18:55:26 +01:00
Stefan Siegl
ca6e0e241b Merge pull request #174 from aphofstede/patch-1
Update README.Linux.md to include PHP extension instruction.
2015-11-20 18:48:13 +01:00
Alexander Hofstede
1642ce48ba Update README.Linux.md
Added a note about adding the extension to PHP config, especially for CLI, which needs to be configured separately in some PHP7 installs.
2015-11-20 22:51:18 +07:00
Stefan Siegl
33d2de53c7 Merge pull request #173 from kynx/function-properties
Added ability to set properties on V8Function
2015-11-03 21:40:48 +01:00
Stefan Siegl
7f194fb63a Merge pull request #171 from stesie/fix-gcc5-build
Improve -Wno-c++11-narrowing/-Wno-narrowing detection
2015-11-03 21:28:27 +01:00
Matt Kynaston
a58f944804 Experiment to see if #172 is easy to fix 2015-11-03 17:35:30 +00:00
Stefan Siegl
7805abfb18 Improve -Wno-c++11-narrowing/-Wno-narrowing detection 2015-10-18 18:03:04 +02:00
Stefan Siegl
b29bb886bb Bump version to 0.3.0 2015-10-11 22:00:33 +02:00
Stefan Siegl
3085db6aeb Merge remote-tracking branch 'origin/master' into php7 2015-10-11 19:51:59 +02:00
Stefan Siegl
b38c31b521 Remove v8::Debug agent stuff
Debug Agent support was removed from V8 with 3.28 line which
is pretty old meanwhile.
2015-10-11 19:47:22 +02:00
Stefan Siegl
296b9078ff fix exception back-propagation on PHP7 2015-10-11 14:59:25 +02:00
Stefan Siegl
5cba44ccd0 Merge remote-tracking branch 'origin/master' into php7
Conflicts:
	README.md
	v8js.cc
	v8js_class.cc
	v8js_exceptions.cc
	v8js_object_export.cc
	v8js_v8.cc
	v8js_v8object_class.cc
2015-10-11 02:09:59 +02:00
Stefan Siegl
111951fbaf Update build badge URL 2015-10-11 01:10:33 +02:00
Stefan Siegl
c76797703b Update build badge URL
Jenkins job was moved to a PHP5.x sub-folder
2015-10-11 01:09:34 +02:00
Stefan Siegl
40a703afac Add PHP7 build badge 2015-10-10 17:47:22 +02:00
Stefan Siegl
e16fb63899 Merge pull request #168 from stesie/multithreading
Fix pthread extension compatibility
2015-10-08 22:43:40 +02:00
Stefan Siegl
2b2c476387 Add pointer to master (aka php 5.x) branch 2015-10-05 22:02:47 +02:00
Stefan Siegl
6779cc5a61 add note on PHP7 branch 2015-10-05 21:59:11 +02:00
Stefan Siegl
9827224471 Don't pass cache_slot to standard handlers
With the cache_slot being filled by the write-handler passing
on the cache_slot, succeeding write calls are not passed on to
our write but handled directly by the executor instead
(in zend_assign_to_object)
2015-10-05 21:41:48 +02:00
Stefan Siegl
b8726409f4 Throw V8JsException if v8 context cannot be created
We used to reset This to NULL, which never reallt was supposed to work
and PHP doc explicitly tell to not touch EX(This)
2015-10-03 00:01:12 +02:00
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
b292715c75 Fix non-ZTS build. 2015-09-27 09:25:58 +02:00
Stefan Siegl
34ca8500b1 Remove 'not tested' note regarding ZTS 2015-09-26 21:45:12 +02:00
Stefan Siegl
74440ed9f7 Move V8JSG extensions and v8_flags to process globals 2015-09-26 21:39:26 +02:00