exit() function question

From: Date: Tue, 03 Sep 2002 15:30:49 +0000
Subject: exit() function question
Groups: php.general 
Request: Send a blank email to php-general+get-115036@lists.php.net to get a copy of this message
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php <?php echo "Version: ",phpversion(),"\n"; exit(1); ?> # ./t3.php ; echo "last run exit value:"$? Version: 4.2.2 last run exit value:255

« previous php.general (#115036) next »