RE: [PHP] exit in function

From: Date: Fri, 18 May 2001 15:29:08 +0000
Subject: RE: [PHP] exit in function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53432@lists.php.net to get a copy of this message
it happens quite often on Win2k. Don't know why, but in my case it happened with some loopy-loops containing SQL in it. Sometimes it works sometimes it doesn't. Try also renaming files. I know it sounds ridiculous, but happened to work for me. m -----Original Message----- From: Jakob Kruse [mailto:kruse@get2net.dk] Sent: Friday, May 18, 2001 11:56 PM To: php-general@lists.php.net Subject: [PHP] exit in function Hi I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an Apache module. If I use the exit construct from within a function Apache crashes. I made a small test-page like this: <?php function foo() { echo "foo1"; exit; echo "foo2"; } foo(); echo "bar"; ?> I would expect it to print "foo1" and then nothing more. But instead Apache crashes. Why? Regards, Jakob Kruse PS: I know it isn't very nice to use exit that way, but I'm trying to run some PHP software that uses it extensively. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#53432) next »