|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-17 08:51 UTC] cynic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 06:00:01 2025 UTC |
Here is my first bug report ever, so please don't be so rude if I forgot something or reported something already known :) When I first use the function substr() to extract the first chars from the beginning of a large string (around 50 kb) that is a HTML page and when I print the whole string the script seems to stop. In example, I have a script that has basically this calls: printpage(); debuginfo(); Into printpage() is located the substr(); substr() is conditioned by an "if" condition, so is not used every time; if it is used then debuginfo() is not called or prints only few lines of debug, depending of the size of the string that was "substr()ed". My personal workaround is like $debugstr=debuginfo(); $htmlpage=printpage(); $finalpage=$htmlpage.$debugstr; print $finalpage; this works, but is not so elegant. Hope you can solve this :) Best regards Daniele Duca, Evectors srl