|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-16 09:22 UTC] haoyu dot guo at ocef dot org
[2005-08-16 09:47 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Description: ------------ The following code prints nothing while run from web (Apache 2), while it does print "<b" at command line. Could it be a bug or is that something I don't know? <?php $idg = "<a"; $idg = str_replace("a", "b", $idg); print $idg; ?> Reproduce code: --------------- <?php $idg = "<a"; $idg = str_replace("a", "b", $idg); print $idg; ?> Expected result: ---------------- <b (on web) <b (command line) Actual result: -------------- nothing (on web) <a (command line)