Home
last modified time | relevance | path

Searched refs:is_object (Results 1 – 25 of 87) sorted by relevance

1234

/PHP-7.2/ext/standard/tests/general_functions/
H A Dis_object.phpt2 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 Dmysqli_connect_oo_warnings.phpt21 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 Dmysqli_prepare.phpt35 …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 Dmysqli_prepare_no_object.phpt14 …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 Dmysqli_init.phpt13 if (!is_object($link) && false !== $link)
16 if (is_object($link) && 'mysqli' != get_class($link))
H A Dmysqli_class_mysqli_result_interface.phpt113 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 Dmysqli_connect.phpt71 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 Dmysqli_stmt_result_metadata_sqltests.phpt40 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 Dmysqli_connect_oo.phpt27 …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 Dmysqli_stmt_get_result_field_count.phpt25 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 Dmysqli_warning_unclonable.phpt29 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 Dmysqli_query_iterators.phpt19 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 Dmysqli_stmt_result_metadata.phpt33 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 Dmysqli_stmt_init.phpt29 if (!is_object($stmt = mysqli_stmt_init($link)))
32 if (!is_object($stmt2 = @mysqli_stmt_init($link)))
H A Dskipifconnectfailure.inc6 if (!is_object($link))
/PHP-7.2/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_options.phpt21 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 Dpdo_mysql_pconnect.phpt90 (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 Dpdo_mysql___construct_options_libmysql.phpt23 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 Dpdo_mysql_stmt_fetch_non_select.phpt22 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 Dpdo_mysql___construct_ini.phpt46 (is_object($db)) ? $db->errorCode() : 'n/a',
47 (is_object($db)) ? implode(' ', $db->errorInfo()) : 'n/a');
/PHP-7.2/ext/opcache/tests/
H A Dphi_remove_002.phpt12 if (! is_object( $user ) || ( is_object($user) && ( $user->login != $blogname )) ) {
H A Dinternal_func_info_static_method.phpt10 var_dump(is_bool(_ZendTestClass::is_object()));
/PHP-7.2/ext/soap/tests/
H A Dbug69137.phpt41 if ($result && is_object($result) && $result->ResolveIPResult && is_object($result->ResolveIPResult…
/PHP-7.2/ext/spl/internal/
H A Dsplobjectstorage.inc96 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 Dbug26640.phpt18 if (is_object($a)) {

Completed in 28 milliseconds

1234