By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,629 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,629 IT Pros & Developers. It's quick & easy.

ereg_replace at PHP > 4.3.2

P: n/a
Is there anything change in "ereg_replace()" PHP > 4.3.2.
Scripts works in PHP 4.3.1 but NOT in PHP 4.3.2:

$text = "<!-- test -->";
$text = ereg_replace("[[:blank:]]+"," ",strip_tags($text));
echo $text . "I<br>\n";

Result:
PHP > 4.3.2
I<br>

PHP 4.3.1
< test >I<br>

Any Hints?
Thanks Roland
--
www.phpdig.net
the smallest free search engine in the universe
--------------Developer welcome----------------

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ljb
g-*********************************@kunstbar.tv wrote:
Is there anything change in "ereg_replace()" PHP > 4.3.2.
Scripts works in PHP 4.3.1 but NOT in PHP 4.3.2:

$text = "<!-- test -->";
$text = ereg_replace("[[:blank:]]+"," ",strip_tags($text));
echo $text . "I<br>\n";

Result:
PHP > 4.3.2
I<br>

PHP 4.3.1
< test >I<br>


Not ereg_replace() - I think the change you are seeing was a fix to
strip_tags() to remove HTML comments. Probably related to PHP
bug # 22008 which was fixed 4.3.2.
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.