/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | is_object.phpt | 2 Test is_object() function 5 /* Prototype: bool is_object ( mixed $var ); 9 echo "*** Testing is_object() with valid objects ***\n"; 93 /* loop to check that is_object() recognizes different 98 var_dump( is_object($object) ); 101 echo "\n*** Testing is_object() on non object types ***\n"; 138 var_dump( is_object($type) ); 143 var_dump( is_object() ); 146 var_dump( is_object($myClass_object, $myClass_object) ); 156 *** Testing is_object() with valid objects *** [all …]
|
/PHP-7.2/ext/mysqli/tests/ |
H A D | mysqli_connect_oo_warnings.phpt | 21 if (!is_object($mysqli = new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 22 …printf("[001] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($m… 25 if (!is_object($mysqli = @new mysqli($myhost)) || ('mysqli' !== get_class($mysqli))) 26 …printf("[002] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($m…
|
H A D | mysqli_prepare.phpt | 35 …if (!is_object(($stmt = mysqli_prepare($link, 'SELECT id FROM test'))) || !mysqli_stmt_execute($st… 43 …if (!is_object(($stmt = mysqli_prepare($link, 'CREATE TABLE test2(id INT) ENGINE =' . $engine))) |… 48 if (!is_object(($stmt = mysqli_prepare($link, 'INSERT INTO test2(id) VALUES(?)')))) 56 if (!is_object(($stmt = mysqli_prepare($link, 'REPLACE INTO test2(id) VALUES (?)')))) 64 if (!is_object(($stmt = mysqli_prepare($link, 'UPDATE test2 SET id = ? WHERE id = ?')))) 73 if (!is_object(($stmt = mysqli_prepare($link, 'DELETE FROM test2 WHERE id = ?')))) 81 if (!is_object(($stmt = mysqli_prepare($link, 'SET @testvar = ?')))) 89 if (!is_object(($stmt = mysqli_prepare($link, "DO GET_LOCK('testlock', 1)")))) 93 if (!is_object(($stmt = mysqli_prepare($link, 'SELECT id, @testvar FROM test2'))))
|
H A D | mysqli_prepare_no_object.phpt | 14 …printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($t… 18 …printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($t… 28 …printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($t… 32 …printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($t…
|
H A D | mysqli_init.phpt | 13 if (!is_object($link) && false !== $link) 16 if (is_object($link) && 'mysqli' != get_class($link))
|
H A D | mysqli_class_mysqli_result_interface.phpt | 113 if (!is_object($res = new mysqli_result($link))) 122 if (!is_object($res = new mysqli_result($link))) 125 if (!is_object($res = new mysqli_result($link, MYSQLI_STORE_RESULT))) 128 if (!is_object($res = new mysqli_result($link, MYSQLI_USE_RESULT))) 131 if (!is_object($res = new mysqli_result($link, 'invalid'))) 141 if (!is_object($res = new mysqli_result($link, $mode))) 149 if (!is_object($res = new mysqli_result('foo'))) 152 if (!is_object($res = @new mysqli_result($link, MYSQLI_STORE_RESULT, 1)))
|
H A D | mysqli_connect.phpt | 71 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db, $port))) { 82 if (!is_object($link = mysqli_connect($host, $user, $passwd, $db))) { 93 if (!is_object($link = mysqli_connect($host, $user))) { 104 if (!is_object($link = mysqli_connect($host))) { 115 if (!is_object($link = mysqli_connect())) { 127 if (!is_object($link = mysqli_connect())) { 143 if (is_object($link = @mysqli_connect())) {
|
H A D | mysqli_stmt_result_metadata_sqltests.phpt | 40 if (!is_object($res)) { 63 if (is_object($meta['fetch_field'])) { 67 if (is_object($meta['fetch_field_direct0'])) { 71 if (is_object($meta['fetch_field_direct1'])) { 108 if (!is_object($res)) { 132 if (is_object($meta_res['fetch_field'])) { 136 if (is_object($meta_res['fetch_field_direct0'])) { 140 if (is_object($meta_res['fetch_field_direct1'])) {
|
H A D | mysqli_connect_oo.phpt | 27 …if (!is_object($mysqli = new mysqli($host, $user, $passwd, $db, $port)) || (0 !== mysqli_connect_e… 34 …if (!is_object($mysqli = new mysqli($host, $user, $passwd, $db)) || (0 !== mysqli_connect_errno())… 41 if (!is_object($mysqli = new mysqli($host, $user)) || (0 !== mysqli_connect_errno())) { 48 if (!is_object($mysqli = new mysqli($host)) || (0 !== mysqli_connect_errno())) { 55 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) { 70 if (!is_object($mysqli = new mysqli())) {
|
H A D | mysqli_stmt_get_result_field_count.phpt | 25 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) { 30 if (!is_object($res_meta = mysqli_stmt_result_metadata($stmt)) ||
|
H A D | mysqli_warning_unclonable.phpt | 29 if (!is_object($warning = mysqli_get_warnings($link)) || 'mysqli_warning' != get_class($warning)) { 30 …printf("[005] Expecting object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var…
|
H A D | mysqli_query_iterators.phpt | 19 if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id"))) 35 if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_USE_RESULT))) 49 if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_STORE_RESULT)))
|
H A D | mysqli_stmt_result_metadata.phpt | 33 if (!is_object(($res = mysqli_stmt_result_metadata($stmt)))) 40 if (!is_object($field0_fetch = mysqli_fetch_field($res))) 44 if (!is_object($field0_direct = mysqli_fetch_field_direct($res, 0))) 68 if (!is_object($field1_direct = mysqli_fetch_field_direct($res, 1)))
|
H A D | mysqli_stmt_init.phpt | 29 if (!is_object($stmt = mysqli_stmt_init($link))) 32 if (!is_object($stmt2 = @mysqli_stmt_init($link)))
|
H A D | skipifconnectfailure.inc | 6 if (!is_object($link))
|
/PHP-7.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct_options.phpt | 21 if (!is_object($db) || ($value !== ($tmp = @$db->getAttribute($option)))) 76 if (!is_object($db = new PDO($dsn, $user, $pass, array()))) 82 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true)))) 96 if (!is_object($db) || !$db->getAttribute(PDO::ATTR_AUTOCOMMIT)) 100 if (!is_object($db) || $db->getAttribute(PDO::ATTR_AUTOCOMMIT)) 104 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => 10)))) 107 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => PHP_INT_MAX)))) 115 if (!is_object($db)) 124 if (!is_object($db)) 162 (is_object($db)) ? $db->errorCode() : 'n/a', [all …]
|
H A D | pdo_mysql_pconnect.phpt | 90 (is_object($db1)) ? $db1->errorCode() : 'n/a', 91 (is_object($db1)) ? implode(' ', $db1->errorInfo()) : 'n/a', 92 (is_object($db2)) ? $db2->errorCode() : 'n/a', 93 (is_object($db2)) ? implode(' ', $db2->errorInfo()) : 'n/a');
|
H A D | pdo_mysql___construct_options_libmysql.phpt | 23 if (!is_object($db) || (!$ignore_diff && ($value !== ($tmp = @$db->getAttribute($option))))) 74 (is_object($db)) ? $db->errorCode() : 'n/a', 75 (is_object($db)) ? implode(' ', $db->errorInfo()) : 'n/a');
|
H A D | pdo_mysql_stmt_fetch_non_select.phpt | 22 if (!is_object($stmt = $db->query('DESCRIBE test id'))) 39 if (!is_object($stmt = $db->query('SHOW ENGINES'))) 57 if (!is_object($stmt = $db->query("EXPLAIN SELECT id FROM test"))) 78 if (!is_object($stmt = $db->query('DESCRIBE test id'))) 112 if (!is_object($stmt = $db->query('SHOW ENGINES'))) 145 if (!is_object($stmt = $db->query("EXPLAIN SELECT id FROM test")))
|
H A D | pdo_mysql___construct_ini.phpt | 46 (is_object($db)) ? $db->errorCode() : 'n/a', 47 (is_object($db)) ? implode(' ', $db->errorInfo()) : 'n/a');
|
/PHP-7.2/ext/opcache/tests/ |
H A D | phi_remove_002.phpt | 12 if (! is_object( $user ) || ( is_object($user) && ( $user->login != $blogname )) ) {
|
H A D | internal_func_info_static_method.phpt | 10 var_dump(is_bool(_ZendTestClass::is_object()));
|
/PHP-7.2/ext/soap/tests/ |
H A D | bug69137.phpt | 41 if ($result && is_object($result) && $result->ResolveIPResult && is_object($result->ResolveIPResult…
|
/PHP-7.2/ext/spl/internal/ |
H A D | splobjectstorage.inc | 96 if (is_object($obj)) 115 if (is_object($obj) && !$this->contains($obj)) 125 if (is_object($obj)) 157 if (is_object($obj))
|
/PHP-7.2/ext/reflection/tests/ |
H A D | bug26640.phpt | 18 if (is_object($a)) {
|