--TEST-- mysqli_prepare() - no object on failure --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- prepare(false))) printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : $tmp)); printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error); if (false !== ($tmp = $mysqli->prepare(''))) printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : $tmp)); printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error); print "done!"; ?> --CLEAN-- --EXPECT-- a) [1065] Query was empty b) [1065] Query was empty c) [1065] Query was empty c) [1065] Query was empty done!