summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/035.phpt
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-10-19 20:07:25 +0000
committerUlf Wendel <uw@php.net>2009-10-19 20:07:25 +0000
commit210353caee6118c3d9872309dad705aa505bd4a4 (patch)
treecef2725120a558ab518c7acdc6539a3181dde4d1 /ext/mysqli/tests/035.phpt
parent6450f43efb6561a45aad7ac2c12079617674d060 (diff)
downloadphp-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/035.phpt')
-rw-r--r--ext/mysqli/tests/035.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/tests/035.phpt b/ext/mysqli/tests/035.phpt
index 7b621aa222..7b18e027b8 100644
--- a/ext/mysqli/tests/035.phpt
+++ b/ext/mysqli/tests/035.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);