---------- Forwarded message ---------- Date: Tue, 7 Aug 2001 13:19:58 +0200 From: Jan Fedak <[EMAIL PROTECTED]> To: Jani Taskinen <[EMAIL PROTECTED]> Subject: Re: [PHP-DEV] Re: Bug #9836 Updated: php unexpectedly ends on too long scripts 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). Jan Jani Taskinen wrote: > On Tue, 7 Aug 2001, Jan Fedak wrote: > > >latest snapshot. > > Good. > > >and after make we finally see that: > >$ ./php ~/5.skr > >(failed: 1) > >$ gdb ./php > >(gdb) run -f ~/5.skr > >Starting program: ./php -f ~/5.skr > > > >Program exited with code 01. > > I get tons of these: > > "Warning - Call-time pass-by-reference has been deprecated - > argument passed by value; If you would like to pass it by reference, > modify the declaration of [runtime function name](). If you would like to > enable call-time pass-by-reference, you can set > allow_call_time_pass_reference to true in your INI file. However, future > versions may not support this any longer." > > And after those: > > <b>Fatal error</b>: Call to undefined function: getparameter() in > <b>5.skr</b> on line <b>15</b><br> > 5.skr(15) : Fatal error - Call to undefined function: getparameter() > > --Jani > > > > >It doesn't > crash, it just exits with errcode. > >I attach php.ini and the script. > > > >Jan > > > > > >Bug Database wrote: > >> ID: 9836 > >> Updated by: sniper > >> Reported By: [EMAIL PROTECTED] > >> Old Status: Closed > >> Status: Feedback > >> Bug Type: Scripting Engine problem > >> Operating System: linux > >> PHP Version: 4.0.5 > >> New Comment: > >> > >> 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 > >> > >> > >> > >> Previous Comments: > >> ------------------------------------------------------------------------ > >> > >> [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. > >> > >> ------------------------------------------------------------------------ > >> > >> [2001-05-10 05:57:58] [EMAIL PROTECTED] > >> > >> No feedback. If problem exists with PHP 4.0.5, reopen. > >> > >> > >> ------------------------------------------------------------------------ > >> > >> [2001-04-19 09:35:10] [EMAIL PROTECTED] > >> > >> Does this happen with latest CVS from http://snaps.php.net/ ? > >> > >> --Jani > >> > >> > >> ------------------------------------------------------------------------ > >> > >> [2001-03-19 13:57:54] [EMAIL PROTECTED] > >> > >> With that limited information you gave in the first > >> comments I couldn't know that. > >> > >> Ok, so it doesn't crash? Just stops? > >> Computer generated scripts? How big? > >> And what do they do? > >> > >> Could you check that it doesn't crash, ie. run the php > >> script which 'ends' within gdb: > >> > >> # gdb php > >> (gdb) run -f thisscriptendstoosoon.php > >> > >> --Jani > >> > >> > >> ------------------------------------------------------------------------ > >> > >> [2001-03-19 12:13:53] [EMAIL PROTECTED] > >> > >> I know of time limit, smart guy. > >> > >> But I don't have it set to 1 sec -- that is approximately the time in which php >terminates. > >> > >> (I hope you mark this problem as closed now -- THAT YOU'VE SOLVED IT). > >> > >> Damn. > >> > >> ------------------------------------------------------------------------ > >> > >> 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/?id=9836 > >> > >> > >> ATTENTION! Do NOT reply to this email! > >> To reply, use the web interface found at http://bugs.php.net/?id=9836&edit=2 > > > > -- Jan Fedak mailto:[EMAIL PROTECTED] Linux - the ultimate NT Service Pack. -- PHP Development 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]