cvs: php-src(PHP_5_3) /ext/oci8/tests connect_without_oracle_home.phpt connect_without_oracle_home_old.phpt pecl_bug16035.phpt
| From: | Christopher Jones | Date: | Thu, 12 Mar 2009 14:50:30 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/oci8/tests connect_without_oracle_home.phpt connect_without_oracle_home_old.phpt pecl_bug16035.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56487@lists.php.net to get a copy of this message | ||
sixd Thu Mar 12 14:50:30 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/oci8/tests connect_without_oracle_home.phpt
connect_without_oracle_home_old.phpt
pecl_bug16035.phpt
Log:
MFH: Fix tests to use ENV and re-enable
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/connect_without_oracle_home.phpt?r1=1.1.2.2.2.1.2.1&r2=1.1.2.2.2.1.2.2&diff_format=u
Index: php-src/ext/oci8/tests/connect_without_oracle_home.phpt
diff -u php-src/ext/oci8/tests/connect_without_oracle_home.phpt:1.1.2.2.2.1.2.1
php-src/ext/oci8/tests/connect_without_oracle_home.phpt:1.1.2.2.2.1.2.2
--- php-src/ext/oci8/tests/connect_without_oracle_home.phpt:1.1.2.2.2.1.2.1 Mon Mar 9 19:01:16 2009
+++ php-src/ext/oci8/tests/connect_without_oracle_home.phpt Thu Mar 12 14:50:29 2009
@@ -3,8 +3,6 @@
--SKIPIF--
<?php
if (!extension_loaded('oci8')) die("skip no oci8 extension");
-/* Disabled: Fix for PECL Bug #16035 stops a crash if ORACLE_HOME is not set when PHP starts. Using
putenv('ORACLE_HOME=""') at runtime will still segfault */
-die("skip can't be tested with run-tests.php");
ob_start();
phpinfo(INFO_MODULES);
$phpinfo = ob_get_clean();
@@ -13,13 +11,13 @@
die ("skip Test only valid when OCI8 is built with an ORACLE_HOME");
}
?>
+--ENV--
+ORACLE_HOME=""
--FILE--
<?php
require dirname(__FILE__)."/details.inc";
-putenv('ORACLE_HOME=""');
-
if (!empty($dbase)) {
var_dump(oci_connect($user, $password, $dbase));
}
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt?r1=1.1.2.2.2.1.2.1&r2=1.1.2.2.2.1.2.2&diff_format=u
Index: php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt
diff -u php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt:1.1.2.2.2.1.2.1
php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt:1.1.2.2.2.1.2.2
--- php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt:1.1.2.2.2.1.2.1 Mon Mar 9 19:01:16
2009
+++ php-src/ext/oci8/tests/connect_without_oracle_home_old.phpt Thu Mar 12 14:50:29 2009
@@ -3,8 +3,6 @@
--SKIPIF--
<?php
if (!extension_loaded('oci8')) die("skip no oci8 extension");
-/* Disabled: Fix for PECL Bug #16035 stops a crash if ORACLE_HOME is not set when PHP starts. Using
putenv('ORACLE_HOME=""') at runtime will still segfault */
-die("skip can't be tested with run-tests.php");
ob_start();
phpinfo(INFO_MODULES);
$phpinfo = ob_get_clean();
@@ -13,13 +11,13 @@
die ("skip Test only valid when OCI8 is built with an ORACLE_HOME");
}
?>
+--ENV--
+ORACLE_HOME=""
--FILE--
<?php
require dirname(__FILE__)."/details.inc";
-putenv('ORACLE_HOME=""');
-
if (!empty($dbase)) {
var_dump(ocilogon($user, $password, $dbase));
}
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/pecl_bug16035.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/oci8/tests/pecl_bug16035.phpt
diff -u php-src/ext/oci8/tests/pecl_bug16035.phpt:1.1.2.2
php-src/ext/oci8/tests/pecl_bug16035.phpt:1.1.2.3
--- php-src/ext/oci8/tests/pecl_bug16035.phpt:1.1.2.2 Mon Mar 9 19:01:16 2009
+++ php-src/ext/oci8/tests/pecl_bug16035.phpt Thu Mar 12 14:50:29 2009
@@ -3,8 +3,6 @@
--SKIPIF--
<?php
if (!extension_loaded('oci8')) die ("skip no oci8 extension");
-/* Disabled: Fix for PECL Bug #16035 stops a crash if ORACLE_HOME is not set when PHP starts. Using
putenv('ORACLE_HOME=""') at runtime will still segfault */
-die("skip can't be tested with run-tests.php");
ob_start();
phpinfo(INFO_MODULES);
$phpinfo = ob_get_clean();
@@ -13,15 +11,16 @@
die ("skip Test only valid when OCI8 is built with an ORACLE_HOME");
}
?>
+--ENV--
+ORACLE_HOME=""
--FILE--
<?php
-putenv('ORACLE_HOME=""');
oci_connect('abc', 'def', 'ghi', 'jkl');
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
-PHP Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system -
please check that ORACLE_HOME is set and points to the right directory in %s on line %d
+Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system -
please check that ORACLE_HOME is set and points to the right directory in %s on line %d
===DONE===