#19084 [Com]: str_replace cannot handle strings > 32 kb
| From: | gvz at infireal dot com | Date: | Sun, 29 Dec 2002 11:01:41 +0000 |
| Subject: | #19084 [Com]: str_replace cannot handle strings > 32 kb | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28655@lists.php.net to get a copy of this message | ||
ID: 19084
Comment by: gvz@infireal.com
Reported By: armandgs@hotmail.com
Status: No Feedback
Bug Type: Strings related
Operating System: Windows 2000
PHP Version: 4.2.2
New Comment:
i am having the same problem, except i use the arrays in the input:
str_replace($replar,$withar,$tpl);
the problem is sometimes only when you refresh a page that could point
to it being an apache problem but it only happens with php pages.
i cannot produce a backtrace since it is on my host's server and i
cannot reproduce it on my local dev machine: winxp, apache2, php 4.1.1
Server with problem: Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a
mod_ssl/2.8.11 OpenSSL/0.9.6g FrontPage/5.0.2.2510 PHP/4.1.2
mod_throttle/3.1.2
Previous Comments:
------------------------------------------------------------------------
[2002-09-21 02:06:03] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2002-08-24 10:53:10] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2002-08-24 10:31:34] armandgs@hotmail.com
To generate the output of my scripts I generally execute code like:
echo str_replace("{body}", show_results(), implode ('', file
('template.html')));
so I put my output inside the page.
when the output generated by show_results() is > 32kb I get the page
cannot be displayed error, random garbage in the output or just
incomplete output.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19084&edit=1