Home
last modified time | relevance | path

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

123

/PHP-5.3/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-5.3/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_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.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_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_stmt_init.phpt29 if (!is_object($stmt = mysqli_stmt_init($link)))
32 if (!is_object($stmt2 = @mysqli_stmt_init($link)))
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 Dskipifconnectfailure.inc6 if (!is_object($link))
H A Dmysqli_get_warnings.phpt33 …printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($t…
45 if (!is_object($warning = mysqli_get_warnings($link)) || 'mysqli_warning' != get_class($warning)) {
46 …printf("[008] Expecting object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var…
74 if (!is_object($warning = mysqli_get_warnings($link)) || 'mysqli_warning' != get_class($warning)) {
75 …printf("[017] Expecting object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var…
96 if (!is_object($warning = new mysqli_warning($mysqli)))
H A Dmysqli_stmt_get_result2.phpt43 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
58 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
93 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
112 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
133 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
/PHP-5.3/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_options.phpt21 if (!is_object($db) || ($value !== ($tmp = @$db->getAttribute($option))))
72 if (!is_object($db = new PDO($dsn, $user, $pass, array())))
78 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true))))
92 if (!is_object($db) || !$db->getAttribute(PDO::ATTR_AUTOCOMMIT))
96 if (!is_object($db) || $db->getAttribute(PDO::ATTR_AUTOCOMMIT))
100 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => 10))))
103 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => PHP_INT_MAX))))
111 if (!is_object($db))
120 if (!is_object($db))
158 (is_object($db)) ? $db->errorCode() : 'n/a',
[all …]
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-5.3/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-5.3/ext/standard/
H A Dphp_type.h37 PHP_FUNCTION(is_object);
/PHP-5.3/ext/reflection/tests/
H A Dbug26640.phpt19 if (is_object($a)) {
/PHP-5.3/ext/spl/tests/
H A Dfixedarray_008.phpt16 if (is_object($x)) {
/PHP-5.3/Zend/tests/
H A Dbug39721.phpt17 if (is_object($foo)) {

Completed in 115 milliseconds

123