phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

Segfault fix when using empty() #506

Closed redbullmarky closed 1 year ago

redbullmarky commented 1 year ago

PHP8.0 changed cast_object so that it cannot be set to NULL.

Given that zend_get_std_object_handlers() provides a functional default, removing the code that assigns NULL to the cast_object handler resolves the issue.

closes #504

stesie commented 1 year ago

Hej Mark, thank you very much for tracking this down!