Home
last modified time | relevance | path

Searched refs:setAttribute (Results 1 – 25 of 270) sorted by relevance

1234567891011

/php-src/Zend/tests/traits/
H A Dbug55424.phpt10 $this->setAttribute();
13 abstract function setAttribute();
18 function setAttribute() { }
27 $i->setAttribute();
30 /* setAttribute used to disappear for no good reason. */
/php-src/ext/dom/tests/modern/spec/
H A DElement_setAttribute_without_namespace.phpt2 Element::setAttribute() without namespace
15 function setAttribute($container, string $name, string $value): Dom\Attr {
16 $container->setAttribute($name, $value);
20 $attrs[] = setAttribute($container, "foo:bar", "&hello1");
22 $attrs[] = setAttribute($container, "foo:bar", "&hello2");
24 $attrs[] = setAttribute($container, "bar", "&hello3");
26 $attrs[] = setAttribute($container, "xmlns", "&hello4");
28 $attrs[] = setAttribute($container, "XMLns", "&hello5");
30 $attrs[] = setAttribute($container, "BAR", "&hello6");
H A DElement_setAttribute_with_namespace.phpt2 Element::setAttribute() with namespace
15 function setAttribute($container, string $name, string $value): Dom\Attr {
16 $container->setAttribute($name, $value);
20 $attrs[] = setAttribute($container, "foo:bar", "&hello1");
22 $attrs[] = setAttribute($container, "foo:bar", "&hello2");
24 $attrs[] = setAttribute($container, "bar", "&hello3");
26 $attrs[] = setAttribute($container, "xmlns", "&hello4");
28 $attrs[] = setAttribute($container, "XMLns", "&hello5");
30 $attrs[] = setAttribute($container, "BAR", "&hello6");
34 $attrs[] = setAttribute($container, "in:ns", "&hello7");
/php-src/ext/pdo_sqlite/tests/
H A Dbug_44159_sqlite_version.phpt8 $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
11 var_dump($pdo->setAttribute(PDO::NULL_TO_STRING, NULL));
15 var_dump($pdo->setAttribute(PDO::NULL_TO_STRING, 1));
17 var_dump($pdo->setAttribute(PDO::NULL_TO_STRING, 'nonsense'));
H A Dbug70862.phpt9 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
13 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
14 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
/php-src/ext/pdo_mysql/tests/
H A Dbug67004.phpt15 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
16 $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
17 $dbh->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
18 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
H A Dgh11587.phpt34 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
35 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
44 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
45 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
54 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
55 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
64 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
65 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
H A Dpdo_mysql_attr_statement_class.phpt14 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
24 $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, 'foo');
29 $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['classname']);
35 $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['classname', []]);
48 $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['myclass', []]);
61 if (false !== ($tmp = $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['mystatement', []])))
75 …if (true !== ($tmp = $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('mystatement2', array()))))
85 …if (true !== ($tmp = $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('mystatement3', array('par…
95 …if (true !== ($tmp = $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('mystatement4', array('par…
112 if (true !== ($tmp = $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('PDOStatement'))))
[all …]
H A Dpdo_mysql_stmt_nextrowset.phpt15 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
64 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
66 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, 1);
71 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
72 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
73 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, 0);
80 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
81 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, 1);
82 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
87 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
[all …]
H A Dpdo_mysql_attr_oracle_nulls.phpt18 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, []);
23 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, new stdClass());
28 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, 'pdo');
33 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, 1);
37 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, 0);
41 $db->setAttribute(PDO::ATTR_ORACLE_NULLS, 1);
49 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
50 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
H A Dpdo_mysql_multi_stmt_nextrowset.phpt14 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
43 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
44 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
45 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, 1);
46 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
50 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
51 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
52 $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, 0);
53 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
58 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
/php-src/ext/dom/tests/
H A Dbug37456.phpt2 Bug #37456 (DOMElement->setAttribute() loops forever)
13 $root->setAttribute('bar', '>');
14 $attr = $root->setAttribute('bar', 'newval');
H A DDOMNode_cloneNode_basic.phpt51 $first_course->setAttribute('title', 'new title1');
54 $first_course->setAttribute('title', 'new title2');
57 $first_course->setAttribute('title', 'new title3');
59 $cloned_first_course_default->setAttribute('title', 'new title default');
60 $cloned_first_course_true->setAttribute('title', 'new title true');
61 $cloned_first_course_false->setAttribute('title', 'new title false');
H A Dbug38474.phpt21 $dom->firstChild->setAttribute('pre:type', 'bar2');
22 $dom->firstChild->setAttribute('type', 'foo2');
23 $dom->firstChild->setAttribute('post:type', 'baz');
24 $dom->firstChild->setAttribute('new:type', 'baz2');
/php-src/ext/pdo_firebird/tests/
H A Dtransaction_access_mode.phpt46 echo "========== Set attr in setAttribute and behavior check ==========\n";
57 var_dump($dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true));
70 var_dump($dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false));
87 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
92 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
101 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
109 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
114 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
123 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
143 ========== Set attr in setAttribute and behavior check ==========
[all …]
H A Dautocommit_change_mode.phpt14 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
19 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
24 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
29 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
34 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
46 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
54 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
64 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
72 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
80 $dbh->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
/php-src/ext/pdo_odbc/tests/
H A Dautocommit_change_mode.phpt14 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
19 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
24 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
29 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
34 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
46 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
54 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
64 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
72 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, true);
80 $db->setAttribute(PDO::ATTR_AUTOCOMMIT, false);
/php-src/ext/pdo/tests/
H A Dbug_44159.phpt2 PDO Common: Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL))
17 $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
23 var_dump($pdo->setAttribute($attr, NULL));
28 var_dump($pdo->setAttribute($attr, 1));
33 var_dump($pdo->setAttribute($attr, 'nonsense'));
H A Dbug_72368.phpt17 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
22 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
31 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
/php-src/ext/pdo_pgsql/tests/
H A Dbug73959.phpt16 $db->setAttribute(PDO::ATTR_PERSISTENT, false);
17 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
18 $db->setAttribute(PDO::PGSQL_ATTR_DISABLE_PREPARES, true);
H A Dgh7723.phpt16 $db->setAttribute(PDO::ATTR_PERSISTENT, true);
17 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
18 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
H A Dbug71885.phpt16 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
17 $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_NUM);
20 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, $emulate);
H A Dbug48764.phpt25 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
35 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);
37 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
44 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
H A Dbug70313.phpt15 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
17 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
26 $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
/php-src/ext/pdo_dblib/tests/
H A Dstringify_uniqueidentifier.phpt25 $db->setAttribute(PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER, true);
27 $db->setAttribute(PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER, false);
43 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
46 $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
57 $db->setAttribute(PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER, true);

Completed in 39 milliseconds

1234567891011