hholzgra                Tue Jul 11 07:21:27 2006 UTC

  Modified files:              
    /php-src/ext/mysqli/tests   071.phpt 
  Log:
  check both OO and procedural style as "thread_id" is a property and not
  a method in the OO interface
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/071.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/mysqli/tests/071.phpt
diff -u php-src/ext/mysqli/tests/071.phpt:1.2 
php-src/ext/mysqli/tests/071.phpt:1.3
--- php-src/ext/mysqli/tests/071.phpt:1.2       Tue Jul 11 07:10:18 2006
+++ php-src/ext/mysqli/tests/071.phpt   Tue Jul 11 07:21:27 2006
@@ -15,8 +15,21 @@
        var_dump($mysql->ping());
 
        $mysql->close();
+
+       $mysql = new mysqli($host, $user, $passwd, "test");
+
+       var_dump(mysqli_ping($mysql));
+
+       var_dump(mysqli_kill($mysql, mysqli_thread_id($mysql)));
+
+       var_dump(mysqli_ping($mysql));
+
+       $mysql->close();
 ?>
 --EXPECT--
 bool(true)
 bool(true)
 bool(false)
+bool(true)
+bool(true)
+bool(false)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to