Bug #9836 Updated: php unexpectedly ends on too long scripts
| From: | fabian at ahrberg dot se | Date: | Wed, 13 Mar 2002 23:48:59 +0000 |
| Subject: | Bug #9836 Updated: php unexpectedly ends on too long scripts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2431@lists.php.net to get a copy of this message | ||
ID: 9836
Updated by: fabian@ahrberg.se
Reported By: jack@mobil.cz
Status: Critical
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.1.0
New Comment:
These two pages are great examples:
www.svenskamagic.com/index.php
www.svenskamagic.com/club_login.php
Reload the pages a couple of times and you'll notice the problem.
www.svenskamagic.com/phpinfo.php might be useful.
Previous Comments:
------------------------------------------------------------------------
[2002-03-13 18:46:31] fabian@ahrberg.se
I'm experiencing a similar problem on a server I use. When we upgraded
to apache 1.3.22 and php 4.1.x from 4.0.x, output sometimes(!) stops on
some pages. Not all pages, and not always! We have no idea what the
problem is, the output just stops. Any ideas?
------------------------------------------------------------------------
[2002-03-05 09:44:36] jack@mobil.cz
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
------------------------------------------------------------------------
[2002-03-02 21:59:17] kalowsky@php.net
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] yohgaki@php.net
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] sniper@php.net
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
------------------------------------------------------------------------
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