note 31508 deleted from function.exit by nlopess

From: Date: Sun, 15 Feb 2004 11:55:17 +0000
Subject: note 31508 deleted from function.exit by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65165@lists.php.net to get a copy of this message
Note Submitter: sean@php.net ---- Exit behaves differently in 4.2.x and 4.3.x (as partially noted in the docs): --- [scoates@cronjobs scoates]$ php -v 4.2.2 [scoates@cronjobs scoates]$ php -q -a Interactive mode enabled <?php exit(2); [scoates@cronjobs scoates]$ echo $? 255 --- [scoates@lxdev01 scoates]$ php -v PHP 4.3.0 (cgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies [scoates@lxdev01 scoates]$ php -q -a Interactive mode enabled <?php exit(2); ?> [scoates@lxdev01 scoates]$ echo $? 2 --- Was confusing us for a while. S

« previous php.notes (#65165) next »