cvs: php-src / run-tests.php

From: Date: Tue, 16 Dec 2003 14:53:43 +0000
Subject: cvs: php-src / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25213@lists.php.net to get a copy of this message
derick Tue Dec 16 09:53:43 2003 EDT Modified files: /php-src run-tests.php Log: - Added %e modifier which gets replaced by the current value of DIRECTORY_SEPARATOR. Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.181 php-src/run-tests.php:1.182 --- php-src/run-tests.php:1.181 Fri Dec 5 08:45:00 2003 +++ php-src/run-tests.php Tue Dec 16 09:53:43 2003 @@ -843,6 +843,8 @@ if (isset($section_text['EXPECTF'])) { $wanted_re = preg_quote($wanted_re, '/'); // Stick to basics + $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re); + echo $wanted_re; $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re); $wanted_re = str_replace("%d", "[0-9]+", $wanted_re);

« previous php.cvs (#25213) next »