php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5676 preg_replace and 'e' modifyer eval problem
Submitted: 2000-07-19 14:36 UTC Modified: 2000-07-20 17:26 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (19/07/2000) OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [2000-07-19 14:36 UTC] wico at cnh dot nl
<?
	echo preg_replace("'<(.*?)>'ime", "Wico('\\1');", "try <'to' match \"this\"> in php");

	function Wico ($plop) {
		return("plop");
	}
?>

// this will work better I think (if you guys are so nice want to build into php for us
// i can't replace all ' with " or visaversa

<?
	echo preg_replace("'<(.*?)>'ime", "Wico($1);", "try <'to' match \"this\"> in php");

	function Wico ($plop) {
		return("plop");
	}
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-20 17:26 UTC] andrei at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 00:01:31 2025 UTC