Annotation of embedaddon/php/ext/mysqli/tests/mysqli_fetch_object_no_object.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mysqli_fetch_object()
! 3: --SKIPIF--
! 4: <?php
! 5: require_once('skipif.inc');
! 6: require_once('skipifemb.inc');
! 7: require_once('skipifconnectfailure.inc');
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: require('table.inc');
! 12: if (!$res = mysqli_query($link, "SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 5")) {
! 13: printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
! 14: }
! 15:
! 16: $obj = mysqli_fetch_object($res);
! 17: var_dump(gettype($obj));
! 18: mysqli_close($link);
! 19: print "done!";
! 20: ?>
! 21: --CLEAN--
! 22: <?php
! 23: require_once("clean_table.inc");
! 24: ?>
! 25: --EXPECTF--
! 26: %s(6) "object"
! 27: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>