ID: 9836
Updated by: [EMAIL PROTECTED]
-Summary: php unexpectedly ends on too long scripts
Reported By: [EMAIL PROTECTED]
Status: Critical
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.1.0
New Comment:
okay. I think I described the problem well enough but I don't want
this bug closed just for 'lack of user feedback'. So do this:
create any long script. an easy (though somewhat slow) way to do this
is:
#!/bin/zsh
echo 'see this' >| test.php
for i in {1..100000}; do
echo '<? echo "...and this\\n"; ?>' >>| test.php
done
now you put 'memory_limit = 50000000' to your php.ini
run
$ php test.php
you'll get a lot of output
now change memory limit to smaller value, let's say 8000000.
$ php test.php
(failed with error code 1)
no warning given although 'error_reporting=E_ALL' in php.ini
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 21:59:17] [EMAIL PROTECTED]
Will you please provide a link to a website containing this sample
script?
Also will you share your php.ini file with us so we might debug this
further? What about your config line?
------------------------------------------------------------------------
[2001-12-14 15:05:22] [EMAIL PROTECTED]
I've verified this problem when I was taking care of other bug report.
This is critical I think.
I'll look for duplicate later.
------------------------------------------------------------------------
[2001-08-07 08:47:19] [EMAIL PROTECTED]
User feedback:
--------------
After further testing I found out it depends on memory limit.
But usually if you violate memory limit, you get a warning. The
warning
is probably not issued when parsing the script. (I am not sure about
it
as I didn't look at the sources).
---------------
User used the latest CVS snapshot.
--Jani
------------------------------------------------------------------------
[2001-08-07 05:48:20] [EMAIL PROTECTED]
And now we have already released PHP 4.0.6. But could
you PLEASE try the latest CVS snapshot: http://snaps.php.net/
After you have tested your script with these and if
it still fails, provide the GDB backtrace I asked a long ago.
--Jani
------------------------------------------------------------------------
[2001-08-07 05:28:09] [EMAIL PROTECTED]
so it has happened again.
I again offer to provide the script so that you can see where the
problem is. I won't paste it here because it has 730K.
The script cannot really run because it is supposed to have many
includes and it itself should be included by other script -- but it
should fail with some reason (like unknown function).
Instead it just dies with return code 1.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/9836
--
Edit this bug report at http://bugs.php.net/?id=9836&edit=1