cvs: pear-core /PEAR RunTest.php

From: Date: Fri, 04 Jul 2008 21:29:44 +0000
Subject: cvs: pear-core /PEAR RunTest.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7611@lists.php.net to get a copy of this message
dufuz Fri Jul 4 21:29:44 2008 UTC Modified files: /pear-core/PEAR RunTest.php Log: preg_quote when people use EXPECTREGEX # No extra tests fail because of this - could mean that if people use EXPECTREGEX already and they are already quoting then things will fail for them http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.70&r2=1.71&diff_format=u Index: pear-core/PEAR/RunTest.php diff -u pear-core/PEAR/RunTest.php:1.70 pear-core/PEAR/RunTest.php:1.71 --- pear-core/PEAR/RunTest.php:1.70 Tue Jun 24 18:39:04 2008 +++ pear-core/PEAR/RunTest.php Fri Jul 4 21:29:44 2008 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: RunTest.php,v 1.70 2008/06/24 18:39:04 dufuz Exp $ + * @version CVS: $Id: RunTest.php,v 1.71 2008/07/04 21:29:44 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.3.3 */ @@ -526,6 +526,11 @@ $wanted_re = str_replace("%c", ".", $wanted_re); // %f allows two points "-.0.0" but that is the best *simple* expression } + + if (isset($section_text['EXPECTREGEX'])) { + $wanted_re = preg_quote($wanted_re, '/'); + } + /* DEBUG YOUR REGEX HERE var_dump($wanted_re); print(str_repeat('=', 80) . "\n");

« previous php.pear.core (#7611) next »