Home
last modified time | relevance | path

Searched refs:pdo (Results 1 – 25 of 214) sorted by relevance

123456789

/PHP-7.0/ext/pdo/
H A DMakefile.frag10 …(cd $(top_srcdir); $(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser…
12 install-pdo-headers:
14 @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo
17 $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
19 $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
21 $(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
23 $(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
30 install: $(all_targets) $(install_targets) install-pdo-headers
H A Dconfig.w324 ARG_ENABLE("pdo", "Enable PHP Data Objects support", "no");
7 …EXTENSION('pdo', 'pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c', false /* force stat…
8 ADD_EXTENSION_DEP('pdo', 'spl', true);
9 PHP_INSTALL_HEADERS("ext/pdo", "php_pdo.h php_pdo_driver.h php_pdo_error.h");
H A Dphp_pdo.h50 PHP_MINIT_FUNCTION(pdo);
51 PHP_MSHUTDOWN_FUNCTION(pdo);
52 PHP_MINFO_FUNCTION(pdo);
54 ZEND_BEGIN_MODULE_GLOBALS(pdo)
56 ZEND_END_MODULE_GLOBALS(pdo)
H A Dpdo.c44 static PHP_GINIT_FUNCTION(pdo);
147 PHP_MINIT(pdo),
148 PHP_MSHUTDOWN(pdo),
151 PHP_MINFO(pdo),
153 PHP_MODULE_GLOBALS(pdo),
154 PHP_GINIT(pdo),
165 ZEND_GET_MODULE(pdo)
169 static PHP_GINIT_FUNCTION(pdo) in PHP_GINIT_FUNCTION() argument
350 PHP_MINIT_FUNCTION(pdo) in PHP_MINIT_FUNCTION() argument
379 PHP_MSHUTDOWN_FUNCTION(pdo) in PHP_MSHUTDOWN_FUNCTION() argument
[all …]
H A Dconfig.m42 dnl config.m4 for extension pdo
30 PHP_ARG_ENABLE(pdo, whether to enable PDO support,
31 [ --disable-pdo Disable PHP Data Objects support], yes)
54 PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
57 PHP_ADD_EXTENSION_DEP(pdo, spl, true)
63 PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h php_pdo_error.h])
/PHP-7.0/ext/pdo_pgsql/tests/
H A Dbug67462.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
15 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
17 $pdo->beginTransaction();
21 $pdo->query("INSERT INTO b67462 VALUES (1), (1)");
23 var_dump($pdo->inTransaction());
24 $pdo->commit(); // This should fail!
26 var_dump($pdo->inTransaction());
[all …]
H A Dbug66584.phpt8 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
16 $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
18 $pdo->beginTransaction();
20 $pdo->query("CREATE TABLE b66584 (a int)");
21 $pdo->query("INSERT INTO b66584 VALUES (165)");
24 $pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, (bool)$i);
27 run($pdo, [0 => 1, 2 => 165, 5 => 3]);
40 $pdo->query("DROP TABLE b66584");
41 $pdo->rollback();
[all …]
H A Dbug69344.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
15 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
16 $pdo->setAttribute (\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
18 $test = function () use ($pdo) {
24 $stmt = $pdo->prepare("SELECT (?)::text AS a, (?)::text AS b");
36 $pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, true);
H A Dbug64953.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
15 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
16 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
20 $st = $pdo->prepare('SELECT ?::char as i');
26 $st = $pdo->prepare('SELECT (?)::char as i');
33 $st = $pdo->prepare("SELECT :int::int as i");
37 $st = $pdo->prepare("SELECT '''?'''::text as \":text\"");
H A Dbug69752.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
12 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
15 $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
17 $pdo->beginTransaction();
19 $pdo->exec("
28 $stmt = $pdo->prepare("insert into foo (field1, field2, field3, field4) values (:field1, :field2, :…
51 $pdo->rollBack();
H A Dbug72294.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
12 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
100 public function prepare( $pdo, $sql )
102 //return $pdo->prepare( $sql );
103 $this->cached_statements[$sql] = $pdo->prepare( $sql );
113 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
115 $prepared_statement_cache = new PreparedStatementCache( $pdo );
118 $statement = $prepared_statement_cache->prepare( $pdo, <<<SQL
128 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
[all …]
H A Dbug62479.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
40 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
41 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
42 $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
51 $pdo->query($sql);
58 $pdo->query($dropUser);
62 $pdo->query($sql);
70 $pdo->query($dropUser);
H A Dbug68371.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
14 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
15 $pdo->setAttribute (\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
49 var_dump($pdo->getAttribute($a));
51 $pdo->setAttribute($a, $v);
52 if ($pdo->getAttribute($a) === $v) {
H A Dbug69362.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
40 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
41 $pdo = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
42 $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
51 $pdo->query($sql);
58 $pdo->query($dropUser);
/PHP-7.0/ext/pdo/tests/
H A Dbug_38253.phpt5 if (!extension_loaded('pdo')) die('skip');
13 if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/te…
15 $pdo = PDOTest::factory();
17 $pdo->exec ("create table test (id integer primary key, n varchar(255))");
18 $pdo->exec ("INSERT INTO test (id, n) VALUES (1, 'hi')");
20 $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_CLASS);
21 $stmt = $pdo->prepare ("SELECT * FROM test");
25 $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_FUNC);
26 $stmt = $pdo->prepare ("SELECT * FROM test");
H A Dbug_44159.phpt2 PDO Common: Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL))
5 if (!extension_loaded('pdo')) die('skip PDO not available');
7 $pdo = new PDO("sqlite:".__DIR__."/foo.db");
14 $pdo = new PDO("sqlite:".__DIR__."/foo.db");
19 var_dump($pdo->setAttribute($attr, NULL));
20 var_dump($pdo->setAttribute($attr, 1));
21 var_dump($pdo->setAttribute($attr, 'nonsense'));
/PHP-7.0/ext/pdo_sqlite/tests/
H A Dbug66033.phpt17 $pdo = new PDO('sqlite::memory:', null, null);
18 $pdo->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('DBStatement',
19 array($pdo)));
20 $pdo->exec("CREATE TABLE IF NOT EXISTS messages (
27 $pdoStatement = $pdo->query("select * from messages");
H A Dpdo_sqlite_get_attribute.phpt8 $pdo = new PDO('sqlite::memory:');
9 var_dump($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
10 var_dump($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION));
H A Dpdo_sqlite_createaggregate_002.phpt8 $pdo = new PDO('sqlite::memory:');
10 $pdo->sqliteCreateAggregate('foo', 'a', '');
11 $pdo->sqliteCreateAggregate('foo', 'strlen', '');
/PHP-7.0/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_ini.phpt13 pdo.dsn.mysql="mysql:dbname=phptest;socket=/tmp/mysql.sock"
21 if ('pdo.dsn.mysql' == $name) {
22 printf("pdo.dsn.mysql=%s\n", $dsn);
28 $dsn = ini_get('pdo.dsn.mysql');
33 printf("pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()\n");
55 pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()
H A Dshow_tables.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) die('skip not loaded');
7 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
12 require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
/PHP-7.0/ext/pdo_sqlite/
H A Dconfig.w324 ARG_WITH("pdo-sqlite", "for pdo_sqlite support", "no");
9 ADD_EXTENSION_DEP('pdo_sqlite', 'pdo');
16 ARG_WITH("pdo-sqlite-external", "for pdo_sqlite support from an external dll", "no");
20 && ADD_EXTENSION_DEP('pdo_sqlite_external', 'pdo') ) {
23 WARNING("pdo-sqlite-external support can't be enabled, libraries or headers are missing")
/PHP-7.0/ext/pdo_oci/tests/
H A Dpdo_oci_attr_drivername.phpt5 if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
6 require(dirname(__FILE__).'/../../pdo/tests/pdo_test.inc');
12 require dirname(__FILE__) . '/../../pdo/tests/pdo_test.inc';
H A Dbug41996.phpt6 if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
7 require dirname(__FILE__).'/../../pdo/tests/pdo_test.inc';
12 require 'ext/pdo/tests/pdo_test.inc';
/PHP-7.0/ext/pdo_dblib/
H A Dconfig.m45 PHP_ARG_WITH(pdo-dblib, for PDO_DBLIB support via FreeTDS,
6 [ --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home directory])
11 AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.])
61 if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
63 elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
65 elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
85 PHP_ADD_EXTENSION_DEP(pdo_dblib, pdo)

Completed in 43 milliseconds

123456789