|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-13 21:56 UTC] kalowsky@php.net
[2002-08-14 05:04 UTC] potsataja at future dot ee
[2002-08-14 18:28 UTC] kalowsky@php.net
[2002-08-15 01:48 UTC] potsataja at future dot ee
[2002-08-15 11:20 UTC] kalowsky@php.net
[2002-09-21 01:53 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 16:00:01 2025 UTC |
Hi, i just upgraded php in my server to 4.2.2 and then problem began. I use my own html parser (function at the bottom), what parses with new version php very slow. I also found problem, it seems that ANY string-search function is slower then in a older version. ------------------------------------------------ function ParseData($f,$v) { if(defined("SID")) { $v["SID"] = SID; } $n = 0; while($s = strpos($f, "{", $n)) { $e = strpos($f, "}", $s); if(!is_int($e)) { break; } $d = substr($f, $s+1, ($e - $s - 1)); if(!preg_match("/[[:space:]]+/", $d)) { $f = str_replace("{".$d."}", $v[$d], $f); } $n++; } return $f; } --------------------------------------- i also tryd strpos function, what should be faster then regexp search but it doesn't. Taaniel