List:Commits« Previous MessageNext Message »
From:ahristov Date:September 27 2007 8:39pm
Subject:PHP mysqlnd svn commit: r1065 - trunk/tests/ext/mysqli
View as plain text  
Author: ahristov
Date: 2007-09-27 22:39:24 +0200 (Thu, 27 Sep 2007)
New Revision: 1065

Modified:
   trunk/tests/ext/mysqli/mysqli_debug_mysqlnd_control_string.phpt
Log:
Improve regex


Modified: trunk/tests/ext/mysqli/mysqli_debug_mysqlnd_control_string.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_debug_mysqlnd_control_string.phpt	2007-09-27 19:02:06
UTC (rev 1064)
+++ trunk/tests/ext/mysqli/mysqli_debug_mysqlnd_control_string.phpt	2007-09-27 20:39:24
UTC (rev 1065)
@@ -79,7 +79,7 @@
 	// F - file name
 	$trace = try_control_string($link, 't:O,' . $trace_file . ':F', $trace_file, 50);
 	// hopefully we'll never see a file name that's not covered by this regular
expression...
-	if (!preg_match("@^\s*[/\w\\\\d]+\.[ch]@ismU", $trace))
+	if (!preg_match("@^\s*[/\w\\\\d\.\-]+\.[ch]@ismU", $trace))
 		printf("[055] File names seem to be missing, first characters from trace are '%s'\n",
substr($trace, 0, 80));
 
 	// -n - print function nesting depth
@@ -213,4 +213,4 @@
 ?>
 --EXPECTF--
 [083][control string 'n:O,/tmp/mysqli_debug_phpt.trace'] Trace file has not been written.
-done%s
\ No newline at end of file
+done%s

Thread
PHP mysqlnd svn commit: r1065 - trunk/tests/ext/mysqliahristov27 Sep