Edit report at https://bugs.php.net/bug.php?id=60978&edit=1
ID: 60978
Comment by: php-dev at zerocue dot com
Reported by: thekid@php.net
Summary: exit code incorrect
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Windows
PHP Version: 5.4.0RC7
Block user comment: N
Private report: N
New Comment:
Looks like this (on my system) is related to ZEND_VM_SPEC not being defined.
zend_vm_def.h: 4567
#if !defined(ZEND_VM_SPEC) || (OP1_TYPE != IS_UNUSED)
Results in all variants of ZEND_EXIT to become: #if 0 || ...
There are only two references to ZEND_VM_SPEC in the code base, neither are
defines. What does this control, where should it be defined?
Previous Comments:
------------------------------------------------------------------------
[2012-02-04 17:56:08] thekid@php.net
Same goes for die().
------------------------------------------------------------------------
[2012-02-04 17:54:03] thekid@php.net
Description:
------------
Calling exit with an int arg will not lead to PHP exiting with this exitcode.
Test script:
---------------
$ php -r 'exit(2);' ; echo $?
Expected result:
----------------
2
Actual result:
--------------
254
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60978&edit=1