Re: exit() function question

From: Date: Wed, 04 Sep 2002 02:09:58 +0000
Subject: Re: exit() function question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115132@lists.php.net to get a copy of this message
Hi, Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL> Why exit() funtion always exit with 255 value instead of the passed RL> value, in php 4.2.2, even when I compile with --enable-cli. RL> Check the code bellow, to see RL> # cat t3.php RL> #!/usr/src/php-4.2.2/php RL> <?php RL> echo "Version: ",phpversion(),"\n"; RL> exit(1); ?>> RL> # ./t3.php ; echo "last run exit value:"$? RL> Version: 4.2.2 RL> last run exit value:255 Try changing the commas to dots like echo "Version: ".phpversion()."\n"; -- regards, Tom

« previous php.general (#115132) next »