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 | eb0e09f5dc387e8a8642e373b84793daf10dcb2f (patch) | |
| tree | 49034c268a84dfa1b73aec50e5338ae670ddff27 /ext/mysqli/tests/024.phpt | |
| parent | 3766730f3c8bef5d0cf3b374c8e8f5ebd3ffdc9f (diff) | |
| download | php-git-eb0e09f5dc387e8a8642e373b84793daf10dcb2f.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/024.phpt')
| -rw-r--r-- | ext/mysqli/tests/024.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/tests/024.phpt b/ext/mysqli/tests/024.phpt index 7dd5408537..2cb93be965 100644 --- a/ext/mysqli/tests/024.phpt +++ b/ext/mysqli/tests/024.phpt @@ -7,7 +7,7 @@ require_once('skipifconnectfailure.inc'); ?> --FILE-- <?php - include "connect.inc"; + require_once("connect.inc"); /*** test mysqli_connect 127.0.0.1 ***/ $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); @@ -54,7 +54,7 @@ require_once('skipifconnectfailure.inc'); ?> --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()); |
