064.phpt 443 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. NULL binding
  3. --EXTENSIONS--
  4. mysqli
  5. --SKIPIF--
  6. <?php
  7. require_once('skipifconnectfailure.inc');
  8. ?>
  9. --FILE--
  10. <?php
  11. require_once("connect.inc");
  12. $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
  13. $stmt = new mysqli_stmt($mysql, "SELECT NULL FROM DUAL");
  14. $stmt->execute();
  15. $stmt->bind_result($foo);
  16. $stmt->fetch();
  17. $stmt->close();
  18. $mysql->close();
  19. var_dump($foo);
  20. ?>
  21. --EXPECT--
  22. NULL