ereg_replace at PHP > 4.3.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roland Sippel

    #1

    ereg_replace at PHP > 4.3.2

    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($t ext));
    echo $text . "I<br>\n";

    Result:
    PHP > 4.3.2
    I<br>

    PHP 4.3.1
    < test >I<br>

    Any Hints?
    Thanks Roland
    --

    the smallest free search engine in the universe
    --------------Developer welcome----------------

  • ljb

    #2
    Re: ereg_replace at PHP &gt; 4.3.2

    g-269c-09-79-617-4345-bh-3-rs_SPAM_@kunstb ar.tv wrote:[color=blue]
    > 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($t ext));
    > echo $text . "I<br>\n";
    >
    > Result:
    > PHP > 4.3.2
    > I<br>
    >
    > PHP 4.3.1
    >< test >I<br>[/color]

    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.

    Comment

    Working...