Sophie

Sophie

distrib > Mandriva > cs4.0 > i586 > by-pkgid > 665b53d51b37ef4d3a9c620ff5a368c6 > files > 37

php4-4.4.4-1mlcs4.src.rpm

--- php-4.3.4.orig/ext/standard/tests/file/bug22414.phpt	2004-03-21 21:20:05.000000000 -0500
+++ php-4.3.4/ext/standard/tests/file/bug22414.phpt	2004-03-21 22:16:37.699804064 -0500
@@ -7,6 +7,7 @@
 <?php
 
 	$php = getenv('TEST_PHP_EXECUTABLE');
+	$pwd = realpath(dirname(__FILE__));
 	$tmpfile = tempnam('/tmp', 'phpt');
 	
 	/* Regular Data Test */
@@ -17,8 +18,7 @@
 	/* Binary Data Test */
 	@unlink($pwd . '/passthru_test');
 	
-	$cmd = $php . ' -n -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"';
-	$cmd = $php . ' -n -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ;
+	$cmd = $php . ' -d "safe_mode=0" -r \' passthru("cat ' . $php . '"); \' > ' . $tmpfile;
 	exec($cmd);
 
 	if (md5_file($php) == md5_file($tmpfile)) {