version 1.1.1.1, 2012/02/21 23:47:58
|
version 1.1.1.2, 2012/05/29 12:34:41
|
Line 10 require_once('skipifconnectfailure.inc');
|
Line 10 require_once('skipifconnectfailure.inc');
|
<?php |
<?php |
include_once("connect.inc"); |
include_once("connect.inc"); |
|
|
|
set_error_handler('handle_catchable_fatal'); |
|
|
$tmp = NULL; |
$tmp = NULL; |
$link = NULL; |
$link = NULL; |
|
|
Line 57 require_once('skipifconnectfailure.inc');
|
Line 59 require_once('skipifconnectfailure.inc');
|
|
|
} |
} |
|
|
$obj = mysqli_fetch_object($res, 'mysqli_fetch_object_construct', null); | $obj = mysqli_fetch_object($res, 'mysqli_fetch_object_construct', array()); |
|
|
if (($obj->ID !== "3") || ($obj->label !== "c") || ($obj->a !== NULL) || ($obj->b !== NULL) || (get_class($obj) != 'mysqli_fetch_object_construct')) { |
if (($obj->ID !== "3") || ($obj->label !== "c") || ($obj->a !== NULL) || ($obj->b !== NULL) || (get_class($obj) != 'mysqli_fetch_object_construct')) { |
printf("[006] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); |
printf("[006] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); |
Line 97 require_once('skipifconnectfailure.inc');
|
Line 99 require_once('skipifconnectfailure.inc');
|
Also, I did not ask to get exceptions using the mysqli_options() |
Also, I did not ask to get exceptions using the mysqli_options() |
*/ |
*/ |
try { |
try { |
if (false !== ($obj = mysqli_fetch_object($res, 'mysqli_fetch_object_construct', 'a'))) | if (false !== ($obj = @mysqli_fetch_object($res, 'mysqli_fetch_object_construct', 'a'))) |
printf("[011] Should have failed\n"); |
printf("[011] Should have failed\n"); |
} catch (Exception $e) { |
} catch (Exception $e) { |
printf("%s\n", $e->getMessage()); |
printf("%s\n", $e->getMessage()); |
Line 136 require_once('skipifconnectfailure.inc');
|
Line 138 require_once('skipifconnectfailure.inc');
|
require_once("clean_table.inc"); |
require_once("clean_table.inc"); |
?> |
?> |
--EXPECTF-- |
--EXPECTF-- |
Warning: Missing argument 1 for mysqli_fetch_object_construct::__construct() in %s on line %d | [E_WARNING] mysqli_fetch_object() expects at least 1 parameter, 0 given in %s on line %d |
| [E_WARNING] mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in %s on line %d |
Warning: Missing argument 2 for mysqli_fetch_object_construct::__construct() in %s on line %d | [E_WARNING] Missing argument 1 for mysqli_fetch_object_construct::__construct() in %s on line %d |
| [E_WARNING] Missing argument 2 for mysqli_fetch_object_construct::__construct() in %s on line %d |
Notice: Undefined variable: a in %s on line %d | [E_NOTICE] Undefined variable: a in %s on line %d |
| [E_NOTICE] Undefined variable: b in %s on line %d |
Notice: Undefined variable: b in %s on line %d | [E_WARNING] Missing argument 2 for mysqli_fetch_object_construct::__construct() in %s on line %d |
| [E_NOTICE] Undefined variable: b in %s on line %d |
Warning: Missing argument 2 for mysqli_fetch_object_construct::__construct() in %s on line %d | |
| |
Notice: Undefined variable: b in %s on line %d | |
NULL |
NULL |
NULL |
NULL |
| [E_WARNING] mysqli_fetch_object(): Couldn't fetch mysqli_result in %s on line %d |
Warning: mysqli_fetch_object(): Couldn't fetch mysqli_result in %s on line %d | |
NULL |
NULL |
|
[E_RECOVERABLE_ERROR] Argument 3 passed to mysqli_fetch_object() must be of the type array, string given in %s on line %d |
Parameter ctor_params must be an array |
Parameter ctor_params must be an array |
|
|
Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d |
Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d |
|
|