#23534 [Opn]: cannot use echo or print more than 13 times in a script

From: Date: Tue, 13 May 2003 04:35:45 +0000
Subject: #23534 [Opn]: cannot use echo or print more than 13 times in a script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39507@lists.php.net to get a copy of this message
ID: 23534 User updated by: mark at onelauter dot com -Summary: while and for loops getting stuck when counter check exceeds 13 Reported By: mark at onelauter dot com Status: Open Bug Type: Scripting Engine problem Operating System: Windows 2000 Server PHP Version: 4.3.1 New Comment: just updated summary, see previous post for additional details... Previous Comments: ------------------------------------------------------------------------ [2003-05-12 23:34:03] mark at onelauter dot com I totally wiped the server (reformatted the HD) and reinstalled everything. I still encounter the same problem. However, from the localhost everything works as expected. There are no errors in any of the php scripts. I only encounter the problem when trying to access the scripts from another machine. I had lots of trouble getting file permissions set and wonder if this could still be an issue, although I'm not getting any permission errors. Scripts also run fine from the local command line. ------------------------------------------------------------------------ [2003-05-08 11:31:16] mark at onelauter dot com I suspect that you're correct. I can run scripts from the command line with no problems so I think it has something to do with the ISAPI setup. I've checked build numbers on the 2 web servers and they're the same, it runs on one but not the other. I'll just wipe the box and start over. If it fixes it I'll let you know. Cheers. :) ------------------------------------------------------------------------ [2003-05-08 03:26:43] edink@php.net This is something wrong with your local configuration. The exact same setup is running on many installs without the described problem. I suggest you try re-installing php with default php.ini first, and then if it doesn't help re-installing the whole machine. ------------------------------------------------------------------------ [2003-05-08 01:08:34] mark at onelauter dot com I don't know if it will help, but this sample also doesn't work. <?php for ($i=0;$i < 15;$i++) { ?> test <? } ?> There seems to be an issue with the output buffer. FWIW, I have buffering turned off to avoid the performance hit. ------------------------------------------------------------------------ [2003-05-08 00:51:05] mark at onelauter dot com I found the same issue with "print" as I did with "echo". ------------------------------------------------------------------------ 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/23534 -- Edit this bug report at http://bugs.php.net/?id=23534&edit=1

« previous php.bugs (#39507) next »