Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug #14747 Updated: Return exitcodes to shell ($?) From: bernd.herbold <email protected>
Date: 12/31/01

ID: 14747
User updated by: bernd.herbold <email protected>
Reported By: bernd.herbold <email protected>
Old Status: Suspended
Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows 2000 with mks-tools
PHP Version: 4.0.6
New Comment:

My mistake.

Previous Comments:
------------------------------------------------------------------------

[2001-12-29 16:22:35] bernd.herbold <email protected>

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

------------------------------------------------------------------------

[2001-12-29 15:27:22] derick <email protected>

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 <email protected>

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>