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:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 11:56 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]