Re: exit status code (fwd)

From: Date: Wed, 10 May 2006 09:50:32 +0000
Subject: Re: exit status code (fwd)
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6919@lists.php.net to get a copy of this message
have you tried to use exit(123) instead of die? On 5/10/06, Alistair Riddell <ali@gwc.org.uk> wrote:
(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 -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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