diff options
author | Ulf Wendel <uw@php.net> | 2009-10-19 20:07:25 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2009-10-19 20:07:25 +0000 |
commit | 210353caee6118c3d9872309dad705aa505bd4a4 (patch) | |
tree | cef2725120a558ab518c7acdc6539a3181dde4d1 /ext/mysqli/tests/bug34810.phpt | |
parent | 6450f43efb6561a45aad7ac2c12079617674d060 (diff) | |
download | php-git-210353caee6118c3d9872309dad705aa505bd4a4.tar.gz |
Using require[_once] instead of include. Adding logic to connect.inc to detect multiple inclusions of connect.inc which leads to a Fatal error because of my_mysqli_connect() function redefinition. Some tests did include connect.inc twice -> run-tests - even the one from trunk - did not detect Fatal error in SKIPIF -> false-positive test result...
Diffstat (limited to 'ext/mysqli/tests/bug34810.phpt')
-rw-r--r-- | ext/mysqli/tests/bug34810.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/tests/bug34810.phpt b/ext/mysqli/tests/bug34810.phpt index fac805312a..19a7e589bb 100644 --- a/ext/mysqli/tests/bug34810.phpt +++ b/ext/mysqli/tests/bug34810.phpt @@ -10,7 +10,7 @@ require_once('skipifconnectfailure.inc'); class DbConnection { public function connect() { - include "connect.inc"; + require_once("connect.inc"); $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); var_dump($link); @@ -35,7 +35,7 @@ echo "Done\n"; ?> --CLEAN-- <?php -include "connect.inc"; +require_once("connect.inc"); if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); |