You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phpif (function_exists('uopz_overload')) {
if (ini_get('uopz.overloads')) {
echo"overloading exit()\n";
uopz_overload(ZEND_EXIT, function(){});
}
}
exit();
echo"This does not get output despite exit being overloaded.\n";
Output:
% php overload.php
overloading exit()
Despite uopz being installed and overloads being enabled in php.ini, it simply doesn't work.
PHP Version:
% php --version
PHP 5.5.14 (cli) (built: Jul 22 2014 22:24:54)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Note I have disabled the opcache zend extension.
Same results happens for php54:
% php --version
PHP 5.4.30 (cli) (built: Jul 22 2014 21:34:41)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Do you have any pointers how to debug or fix this?
The text was updated successfully, but these errors were encountered:
Test Script:
Output:
Despite uopz being installed and overloads being enabled in php.ini, it simply doesn't work.
PHP Version:
Note I have disabled the opcache zend extension.
Same results happens for php54:
Do you have any pointers how to debug or fix this?
The text was updated successfully, but these errors were encountered: