What is REG_BADRPT, and why do I get it?

From: Date: Mon, 14 Jan 2002 13:42:07 +0000
Subject: What is REG_BADRPT, and why do I get it?
Groups: php.db 
Request: Send a blank email to php-db+get-15764@lists.php.net to get a copy of this message
Hello! I have quite a weird problem. When I use ereg or ereg_replace I get a REG_BADRPT warning, like so : Warning: REG_BADRPT in /var/www/html/mag/search.php on line 35 Warning: REG_BADRPT in /var/www/html/mag/search.php on line 36 The offending lines are if(ereg("*",$search_name)) { ereg_replace("*","%",$search_name); } if(ereg("?",$search_name)) { ereg_replace("?","_",$search_name); } but just two lines above them I have if(ereg("*",$search_id)) { ereg_replace("*","%",$search_id); } if(ereg("?",$search_id)) { ereg_replace("?","_",$search_id); } and two similar lines of code below them, yet PHP doesn't complain about them. Anyone have any ideas as to what's causing the warning? Cheers, Markus -- Markus Lervik Linux-administrator with a kungfoo grip Vaasa City Library - Regional Library markus.lervik@vaasa.fi +358-6-325 3589 / +358-40-832 6709

« previous php.db (#15764) next »