Bug #14747 Updated: Return exitcodes to shell ($?)

From: Date: Sat, 29 Dec 2001 21:22:35 +0000
Subject: Bug #14747 Updated: Return exitcodes to shell ($?)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75298@lists.php.net to get a copy of this message
ID: 14747 User updated by: bernd.herbold@gmx.de Reported By: bernd.herbold@gmx.de Status: Suspended Bug Type: Feature/Change Request Old Operating System: Operating System: Windows 2000 with mks-tools Old PHP Version: 4.1.1 PHP Version: 4.0.6 New Comment: Sorry, I just tried your suggestion under Linux and it works. But under Windows2000 with the mks-Toolkit and there it dosn't work. Thnx Bernd Previous Comments: ------------------------------------------------------------------------ [2001-12-29 15:27:22] derick@php.net just use exit(number) it returns the exit code (and also prints the value). The printing will be removed in PHP5 (if it is a number). Derick ------------------------------------------------------------------------ [2001-12-28 16:39:37] bernd.herbold@gmx.de Hi, I tried to use PHP in connection with shellprogramming. I would be fine if you could return exit codes to shellscripts. So that you can use something like "if [ $? -eq 0 ]" to test if the PHP-Script had run succesful. So wouldn`t need to use Perl in future. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14747&edit=1

« previous php.dev (#75298) next »