Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > main-updates-src > by-pkgid > 5f84d7198ad7e76815a0aab8da1d5b40 > files > 58

php-5.2.1-4.4mdv2007.1.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)) {