exit status code (fwd)

From: Date: Wed, 10 May 2006 08:27:49 +0000
Subject: exit status code (fwd)
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6918@lists.php.net to get a copy of this message
(resending - apologies if message appears twice) Can anybody explain why this script: <?php die(123); ?> exits with status code 123 but this script: <?php dl('php_gtk.so'); die(123); ?> exits with status code 1, as tested using "echo $?". (This is with php 4.4.2, php_gtk 1.0.2.) I have an application where I would like to signify certain conditions using exit status codes but it does not appear to be possible to do this while using php-gtk. Any suggestions gratefully received - I have started looking at the php_gtk code but I don't know much about the zend extension interface so haven't got very far. -- Alistair Riddell - BOFH IT Manager, George Watson's College, Edinburgh Tel: +44 131 446 6070 Fax: +44 131 446 6090 Microsoft - because god hates us

« previous php.gtk.general (#6918) next »