Bug #8266 [NEW]: Regex.php bug (preg_match warning)

From: Date: Sun, 23 Jul 2006 04:29:44 +0000
Subject: Bug #8266 [NEW]: Regex.php bug (preg_match warning)
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-5160@lists.php.net to get a copy of this message
From: rabzelj dot janez at gmail dot com Operating system: Debian SID GNU/Linux Package version: PHP version: 5.1.4 Package: Bug System Bug Type: Bug Bug description: Regex.php bug (preg_match warning) Description: ------------ Pear version: Release Date 2006-07-18 20:16:41 Release Version 1.4.10 (stable) API Version 1.4.2 (stable) HTML_Quickform version: Version 3.2.6 Release Date 2006-06-22 On Debian SID GNU/Linux Kernel 2.6.16-2-k7 Cherokee 0.5.4 PHP 5.1.4 Test script: --------------- My script http://pget.org/index.php?id=575ea8dd10 the error was found since 52 line to 56, when I try put a numeric rule Regex.php http://pget.org/index.php?id=324825fa87 Expected result: ---------------- I just want to see the error when I wrote in the fields incorrectly. Actual result: -------------- You can see http://rabzelj.net/proyecto/insAlumno.php when you left blank all the fields you can see the warning in the top. Warning: preg_match() expects parameter 2 to be string, array given in /usr/share/php/HTML/QuickForm/Rule/Regex.php on line 57 Warning: preg_match() expects parameter 2 to be string, array given in /usr/share/php/HTML/QuickForm/Rule/Regex.php on line 57 -- Edit bug report at http://pear.php.net/bugs/bug.php?id=8266&edit=1 --

« previous php.pear.webmaster (#5160) next »