Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/php/pecl-languages-v8js

V8 Javascript Engine for PHP
https://github.com/php/pecl-languages-v8js

Fix strdup+getenv behaviour; multi api version support, closes #86

0355a95c7810a6bf90d03f1b1ca057c54efaef3a authored almost 11 years ago by Stefan Siegl <[email protected]>
Merge remote-tracking branch 'rosmo/master'

ddbef50ea6bb267b8ee856589bdc95c83d7e39e7 authored almost 11 years ago by Stefan Siegl <[email protected]>
Make compatible with V8 3.25.12, fixes #88

1186e7951f08dcbcc233582b425305ec8705aaef authored almost 11 years ago by Stefan Siegl <[email protected]>
Clear persistent cells with weak references correctly, refs #88

bc86ce9e448706f001e2b5fad9d4cd70104a8caa authored almost 11 years ago by Stefan Siegl <[email protected]>
Make compatible with V8 3.24.10, fixes #83

4c64bc4ad90eb2ea5b8631cc23dea28a61f9e153 authored almost 11 years ago by Stefan Siegl <[email protected]>
Fix passing of null bytes from V8 to PHP (github issue #80).

3b6390b7f85ca5ccb3a5e661b9df86dc52c9bbdf authored almost 11 years ago by Taneli Leppa <[email protected]>
Added new "v8js.use_date" ini setting to convert PHP DateTime objects to Javascript Date objects

when set as V8JS object properties.

da53c90f88841c370736a20aeb7f83089da3f4ef authored almost 11 years ago by Taneli Leppa <[email protected]>
Forgot to commit test for large number support.

66dbe7d323dee70a4bcaf4d7d5b094ba391cb82a authored almost 11 years ago by Taneli Leppa <[email protected]>
Passing integers that didn't fit in 32-bit integers from PHP to Javascript

did not work properly, now uses float to pass larger numbers.

9ddac3f12409168fb575a1220a6c4fde69bfc1e9 authored almost 11 years ago by Taneli Leppa <[email protected]>
V8 needs to be notified when timezone changes. Keep track of timezone changes and notify it.

Also added a test.

0a85d27ee784e394c55a660b42427da502f31370 authored almost 11 years ago by Taneli Leppa <[email protected]>
When passing objects from JS to PHP with mixed keys, some of the keys

might get lost or "re-indexed". This fixes it and adds two tests.

dd20670546820929a53cbe55e297c5a22aca4227 authored almost 11 years ago by Taneli Leppa <[email protected]>
Added checkString() method for checking Javascript syntax.

54621e18f3083788e3198185c26279e926f1807c authored almost 11 years ago by Taneli Leppa <[email protected]>
Build fix for GCC 4.4 (eg. el6).

52dc41e30e79ff673ad6b129843c07b667826617 authored almost 11 years ago by Taneli Leppa <[email protected]>
Merge pull request #82 from stesie/fix-ftbfs-v8-3.24.5

Fix build against V8 >= 3.24.4

98d535b8b1c101fb05f60a4a15c8e93ea8c67a67 authored about 11 years ago by Patrick Reilly <[email protected]>
Update README, removed build badge, require V8 3.22.3

GitHub now caches the build badge image if it is served via HTTP.
However the Jenkins box has no...

985307dc91aa4f838d9dbe4d65b7f2888bb12ae2 authored about 11 years ago by Stefan Siegl <[email protected]>
Make compatible with V8 3.23.2 (and below)

8858bf5f27ad7bb0ac3729e940b3067a99464ae7 authored about 11 years ago by Stefan Siegl <[email protected]>
Make compatible with V8 3.23.8 (and below)

1e773dd4a8da60ce76fd3933d31621523055ceb2 authored about 11 years ago by Stefan Siegl <[email protected]>
Make compatible with V8 3.23.11 (and below)

e20e5098c7d8eceb6074d839951d1f99bc403ef0 authored about 11 years ago by Stefan Siegl <[email protected]>
Fix build against libv8 3.24.5

69290b57791c697da3e9d8ee348ba8819ae0b09e authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #77 from cscott/minor-fixes

A pair of minor fixes

e68d7073de4e6fa7797dbc78ba610bc8f5f5dbf5 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #76 from cscott/issue-75

Protect against direct invocation of `new V8Object` and `new V8Function`

5f0cd045e293903fe9ce7458aae12200e2ef1f5e authored about 11 years ago by Patrick Reilly <[email protected]>
Fix test cases which hard coded the object identity of returned objects.

30497766a3e7b75e8388793e58b23eda42b7d6fb authored about 11 years ago by C. Scott Ananian <[email protected]>
Remove unnecessary TSRMLS_FETCH from php_v8js_weak_object_callback.

7c5817c931aa530ebad4b82ab3d393944616cf18 authored about 11 years ago by C. Scott Ananian <[email protected]>
Protect against direct invocation of `new V8Object` and `new V8Function`.

This fixes issue #75.

2fe87a4cbc4aec4b71f94eac515b0d1a9ea63a59 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #74 from cscott/dtor-simple

Simplify php_v8js_weak_object_callback.

6eeafc0f83b4689aeca5b37a003e37e4ce822306 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #73 from cscott/a-few-more-leaks

Fix leak in v8 named property setter; clean up v8 named property getter.

38837af24322d2369f0e72df7c46485b2778ea84 authored about 11 years ago by Patrick Reilly <[email protected]>
Simplify php_v8js_weak_object_callback.

This also fixes a leak in the `object_dom` testcase, where the DOM extension
returns an object w...

892c654c8c1da8fde7730bdce96b1da7f448cc51 authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix leak in v8 named property setter; clean up v8 named property getter.

zend_update_property does not own the value after the call; we need to
do the deref ourself. Tw...

1976e35b9a05184f4b2f9890eb5c44015a27cc70 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #70 from cscott/travis-fix-3

More memory leak and safety fixes; fix travis configuration.

a730ddeb67536dc78b0bb2bfabbe6cc0b81f8948 authored about 11 years ago by Patrick Reilly <[email protected]>
Fix memory leak in zend_read_property; also pass correct scope object.

879d1d54a2c545f74869611c93e7276a137a5931 authored about 11 years ago by C. Scott Ananian <[email protected]>
Free php_v8js_accessor_ctx when we are done with it.

24257b54af3167c8c3b92da52fc523b849729abd authored about 11 years ago by C. Scott Ananian <[email protected]>
Make PHP object accessors typesafe using V8::AccessorSignature.

This ensures that if you copy the accessor to another object you can't
trigger a segfault.

3f77a5a35699369ae162dc84303d85d47dbb4839 authored about 11 years ago by C. Scott Ananian <[email protected]>
Travis config update: fix for issue #56.

Test against php 5.3, 5.4, and 5.5 -- which incidentally works around
the 'make test always succ...

673d178ce72c61e15c73763af549a38c126b5698 authored about 11 years ago by C. Scott Ananian <[email protected]>
Travis config update: compile against minimum supported v8 and most recent v8.

99a1d54e9e4c1f765593adfef86ae7d1995f1869 authored about 11 years ago by C. Scott Ananian <[email protected]>
Don't leak if PHP constructor is called from JavaScript.

Register the weak reference callback to deref and do memory limit
accounting for wrapped PHP obj...

1c3a919ae854f29222d2ba3069b850813ff98f83 authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix double-pop of timer_ctx (and efree from wrong thread).

The timer_ctx was being popped & freed in terminate_execution, from the
timer thread (not the ma...

57348c5f7d7bca084b6ef64724b78eaea6a08c78 authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix memory leak: The get_properties handler owns the returned hashtable.

dba63228124d59a3aee9f9aa9bc3a8a589ac75f7 authored about 11 years ago by C. Scott Ananian <[email protected]>
Document rules for initialization/cleanup of ZTS globals.

Transfer stesie's comment from the c3512587acf2f6aeeb80d7cc753f08a784c4c86b
commit message so th...

7cdcb5f45e9c4dacaf4928fb267c36e55c64eb42 authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix a bunch of memory leaks.

Found by compiling PHP with --enable-debug.

b4d560dd52309aaabd5a7374fc745e6210fe7e18 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #69 from stesie/fix-global-zts-init

Initialize v8js_globals manually only if ZTS is enabled.

ae2ad9967d6206c1df64db0129961df9f3098530 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #67 from stesie/fix-garbage-collection

Fix garbage collection

8a51e0bc81d3a7866c15ef2885261d24b2bcc1e3 authored about 11 years ago by Patrick Reilly <[email protected]>
Delete global PHP object on shutdown

Deleting the global object implicitly deletes all the properties,
i.e. PHP objects we previously...

68a579f3aededc12aa78015115ee0e7fc1f39371 authored about 11 years ago by Stefan Siegl <[email protected]>
Trigger garbage collection within Isolate::Scope

Before the idle notifications to V8 were sent without a special
Isolate entered, which results i...

18b129b12861fa58050679759280fdbfe8a9d8da authored about 11 years ago by Stefan Siegl <[email protected]>
Initialize v8js_globals manually only if ZTS is enabled.

If ZTS is disabled, the v8js_globals instance is declared right
in the BSS and hence automatical...

c3512587acf2f6aeeb80d7cc753f08a784c4c86b authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #68 from stesie/fix-double-free

Don't manually call destructors on v8js_globals.

5c1c68b045824e319b68f86e9b6e2d67595ab5d0 authored about 11 years ago by Stefan Siegl <[email protected]>
Don't manually call destructors on v8js_globals.

v8js_globals is declared at the beginning of v8js.cc and hence
it's constructors and destructors...

16934c22547480ef2513d4bd601512f0d4e1c43d authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #66 from cscott/mem-leaks

Fix init/shutdown of v8js_globals.

1906a8e6b6de303b69c374a633a49c42960b9e11 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #65 from cscott/zts-fix

ZTS fixes

b2a92e5be1a8e6d9eddd4b662514d7d190633e67 authored about 11 years ago by Patrick Reilly <[email protected]>
Store tsrm_ls in php_v8js_ctx.

This avoids the need to ever do a (slow) TSRMLS_FETCH().

39cc821f9122276c3c186643128eba4f86a8327a authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix ZTS errors in v8js_convert.cc.

011e517cfe1b76b17dffecb87fa4c71869d4af23 authored about 11 years ago by C. Scott Ananian <[email protected]>
Fix init/shutdown of v8js_globals.

The mutex/map/stack constructor/destructors weren't being properly called.

527e636b25efa37d84f84fd26026baaaa0a0adc0 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #63 from cscott/travis-fix

Travis config update: Partial fix for issue #56.

e2a8186ad6484d755605e125c8555098a79b870d authored about 11 years ago by Patrick Reilly <[email protected]>
Travis config update: Partial fix for issue #56.

0948795d366d39edd957631fd7df04d68e51cd77 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #62 from cscott/issue-25

Fix property and method calls on PHP native objects.

e73a9434db0763efd9b1ac84fa4166b2a564f813 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #61 from cscott/misc-cleanup

A week's worth of cleanup

ed8fd24f69354745e7379dc3872b77071386e566 authored about 11 years ago by Patrick Reilly <[email protected]>
Refactor template cache into php_v8js_ctx.

Reduce map lookups by adding internal object field pointing to function
template. Use hidden fi...

303f3f52b52f2f177bfeb2aa65056cd1f4093401 authored about 11 years ago by C. Scott Ananian <[email protected]>
PHP 5.3 compatibility fixes.

c341511b3629dcdec1464db06f19279b0847173c authored about 11 years ago by C. Scott Ananian <[email protected]>
Add a test of PHP magic functions.

44c329b95381b46755da8bc3b5a797c94f357acc authored about 11 years ago by C. Scott Ananian <[email protected]>
Rework JavaScript wrapper for PHP objects.

Use the NamedPropertyHandler feature of v8 to wrap accesses to PHP properties
and methods from J...

f6a6d1e4b59102716859aa0e8239083acd16d350 authored about 11 years ago by C. Scott Ananian <[email protected]>
Add a test for issue 25 (native properties)

0adefa50484dd1ad9d02ee6154c0002f0c56bbda authored about 11 years ago by C. Scott Ananian <[email protected]>
Add isolate parameter to V8JS_* macros.

This avoids unnecessary calls to Isolate::GetCurrent() in the implementation.
By standardizing o...

52d8946b89d1a7d7230c6dc5f1de7e3009915d6d authored about 11 years ago by C. Scott Ananian <[email protected]>
Bug fixes for JavaScript var_dump implementation (make it match PHP).

27a140c9fbfcf76ec559f961bb031661874fd1de authored about 11 years ago by C. Scott Ananian <[email protected]>
Handle NULL in global.var_dump().

c725a8067481bd4438fa419715e21052ab080683 authored about 11 years ago by C. Scott Ananian <[email protected]>
Clean up allocation/deallocation of php_v8js_ctx.

Use the constructor and destructor functions (don't just cross our fingers
and hope that zeroing...

0e1c6ef5e9e289594f749524f74c23728ea97745 authored about 11 years ago by C. Scott Ananian <[email protected]>
Cleanup: remove some warnings when compiled with -Wunused

49632054a465196b45edf3466c119f8439ea6200 authored about 11 years ago by C. Scott Ananian <[email protected]>
Unwrap PHP objects when passing them back from JavaScript to PHP.

2516e76ff80952ad7f0cb8b62a8a5b5d3f721ff9 authored about 11 years ago by C. Scott Ananian <[email protected]>
Don't rethrow outer exception if report_uncaught is false.

This would cause the exception to stick around and the next time JavaScript
is executed, this ex...

abadda147c495e1e037212b43bc3c7656069c702 authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #60 from stesie/fix-v8object-rewrap

Don't re-wrap PHP objects from V8 to V8Object

6de3e901fa80970204b76af2527f48fff21c4e7a authored about 11 years ago by Patrick Reilly <[email protected]>
Don't re-wrap PHP objects from V8 to V8Object

bd9483080daffcd9c7eaefd5b734f84e50171cae authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #58 from stesie/fix-tsrm

TSRM/ZTS fixes.

0051c777009771892d3e4452885151301ca46439 authored about 11 years ago by Patrick Reilly <[email protected]>
TSRM/ZTS fixes.

61eee4cbd6004dc88f4bf4bf1a13f817acb357ad authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #57 from stesie/call-object_properties_init

More fixes on handling of derived V8Js objects and property export

f31c44e52460c845cdf9b9d56f372bc9e29171ed authored about 11 years ago by Patrick Reilly <[email protected]>
Copy default_properties to new object (PHP 5.3)

8eb5721c35466111635b98c22cde72406e31b3f5 authored about 11 years ago by Stefan Siegl <[email protected]>
Export initially initialized public properties to V8

Before a property was exported to V8 if it was assigned a value
during normal code execution. H...

c77cdf4b6f70c05308b41863f1ebfb9ab4e8812e authored about 11 years ago by Stefan Siegl <[email protected]>
Test export of undeclared properties in derived classes

683ac347c731e838f17d1408bf4f4c4fcbf98233 authored about 11 years ago by Stefan Siegl <[email protected]>
Make php_v8js_write_property export only public properties

Before a property would have been exported, even if a derived
class declared it either private o...

257233be51501f500fa6702737162115811d8ea1 authored about 11 years ago by Stefan Siegl <[email protected]>
Add test on protected & private properties on derived classes

b888cfce0d540e3f0b3aac63aa5641cb42bc4aca authored about 11 years ago by Stefan Siegl <[email protected]>
Add test on initially initialized properties on V8Js object.

1f8b6055858b1577b3aa0782bb4f51bf2a399802 authored about 11 years ago by Stefan Siegl <[email protected]>
Add test from issue #54

645b0df999edd2b0a0fc80e38cda2c8ec494ac2a authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #55 from stesie/call-object_properties_init

Call object_properties_init on newly created V8Js object.

40d9e3e4f2a8ccd3390af0ce02a6d6d1ba6cd4ea authored about 11 years ago by Patrick Reilly <[email protected]>
Call object_properties_init on newly created V8Js object.

d6a4a3c96005922fedd9364209dca2ed70c61390 authored about 11 years ago by Stefan Siegl <[email protected]>
fix version macros name

c0290d4a17a28346443bc533ed0b4b56042c199a authored about 11 years ago by Anatol Belski <[email protected]>
Merge pull request #53 from stesie/v8-debug

Add V8 debugging support

17381525f171d190ac9a544acedda90b55c67467 authored about 11 years ago by Patrick Reilly <[email protected]>
Add v8 debug support

d69f2be50ac3429d4d737fc754dacd54c9d32bd7 authored about 11 years ago by Stefan Siegl <[email protected]>
Unlock isolate on JS->PHP transition.

3f049d3b912264ff9daa8c3865c409c4f82b9f18 authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #52 from cscott/travis

Support g++-4.6 and travis CI server.

ab35dcc96b59393a6f1e8efbdf2c4f898260b2fa authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #51 from cscott/typesafe-func

Make JavaScript function wrappers typesafe.

b021bbefab046c6c6b561fbc5d4ba375381f1293 authored about 11 years ago by Patrick Reilly <[email protected]>
Hookup Travis continous integration test server.

d75fc4a142fb82bcb349ab0fd089415ead37de06 authored about 11 years ago by C. Scott Ananian <[email protected]>
Support g++-4.6 in configuration script.

gcc 4.6 doesn't have the -std=c++11 option, it uses the not-yet-finalized
-std=c++0x option. Us...

d416d9b59b1436736ee558a2dbe1d6d2701a62e9 authored about 11 years ago by C. Scott Ananian <[email protected]>
Make JavaScript function wrappers typesafe.

Use the v8::Signature parameter to FunctionTemplate::New to guarantee that
the info->Holder() is...

f85675f1697911cc21486b948628b548b816838b authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #50 from stesie/fix-test-for-php53

Make test PHP 5.3 compatible

0319b7425098fb97a8bcc851de13e4c4d25cea01 authored about 11 years ago by Patrick Reilly <[email protected]>
Make test PHP 5.3 compatible

4f3cbd412b30157d350f8ce63b158ec4aa85bb7c authored about 11 years ago by Stefan Siegl <[email protected]>
Merge pull request #48 from cscott/has_prop

Implement property_exists()/isset()/empty() on wrapped JavaScript object

8862498a108bfebe36e567f4bc519ee85c976202 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #49 from stesie/ci-badge

Build status badge for README

0855065e5a34231aac91cc60c20267e31be7337c authored about 11 years ago by Patrick Reilly <[email protected]>
Add CI badge and link to Jenkins job list

6ab41f21a168ba749e1057cb91eaaacba7cbe1d6 authored about 11 years ago by Stefan Siegl <[email protected]>
Implement property_exists()/isset()/empty() on wrapped JavaScript objects.

Fixes issue #32.

035e6faa8ba2c95088d4ddf9624cf8909cf1415a authored about 11 years ago by C. Scott Ananian <[email protected]>
Merge pull request #46 from cscott/more-build-tweaks

Ensure all v8 libraries are copied in README; sanity check in config.m4.

ba3fe2e27ab5092de4b3cb2303f6c48b9d86fd42 authored about 11 years ago by Patrick Reilly <[email protected]>
Merge pull request #47 from stesie/fix-copy-trait-inline

Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x

09f5fd2ede8dabe558b5ebce1c1cce619e89a182 authored about 11 years ago by Patrick Reilly <[email protected]>
Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x

988691d2dcd9ba5161ad37f743f4abd5cc856223 authored about 11 years ago by Stefan Siegl <[email protected]>
Ensure all v8 libraries are copied in README; sanity check in config.m4.

The latest versions of v8 build libicu as well. If this isn't copied to
the lib directory, then...

91393faca33b2b721296753f52d0b35d5e18668f authored about 11 years ago by C. Scott Ananian <[email protected]>