From: [EMAIL PROTECTED] Operating system: Solaris 9 - Sparc PHP version: 4.2.2 PHP Bug Type: Output Control Bug description: returncodes in shell $? aren't correct
Hello, there is something wrong with the exitcodes in PHP. I use it instead of Perl for some shellscript addons. I need the exitcodes for sendmail. Example: ******** <? exit(); ?> Return as exitcode 0 which is ok. <? exit(79); ?> Return as exitcode 255 which isn't ok. <? exit("79"); ?> Print out 79 and return exitcode 255, which isn't ok as well. Here my configure: **************** './configure' '--prefix=/www-1/src/php' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf/' '--enable-versioning' '--with-mysql=/usr/local/mysql' '--enable-ftp' '--enable-bcmath' '--disable-debug' '--enable-memory-limit=yes' '--enable-track-vars' '--enable-calendar' '--enable-force-cgi-redirect' '--enable-libgcc' '--enable-trans-sid' '--with-java=/usr/java' '--enable-yp' '--enable-sysvsem' '--enable-sysvshm' '--with-zlib=/sw/es-tools/' '--with-gd=/sw/es-tools/' '--with-system-regex' '--with-jpeg-dir=/sw/es-tools/pkg/jpeg-6b/' '--with-tiff-dir=/sw/es-tools/pkg/tiff-3.5.7/' '--with-ldap=/usr/local/' '--with-db3=/usr/local/BerkeleyDB.3.3/' '--enable-cli' I don't think that a backtrace should help here. If yes, please contact me. Thx in forward. Peter -- Edit bug report at http://bugs.php.net/?id=21126&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21126&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21126&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21126&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21126&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21126&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21126&r=support Expected behavior: http://bugs.php.net/fix.php?id=21126&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21126&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21126&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21126&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21126&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21126&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21126&r=isapi