mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Expose PDO_ODBC_TYPE to userland
This commit is contained in:
@@ -497,6 +497,9 @@ PHP 8.3 UPGRADE NOTES
|
||||
- PCNTL:
|
||||
. SIGINFO
|
||||
|
||||
- PDO_ODBC
|
||||
. PDO_ODBC_TYPE
|
||||
|
||||
- PGSQL:
|
||||
. PGSQL_TRACE_SUPPRESS_TIMESTAMPS
|
||||
. PGSQL_TRACE_REGRESS_MODE
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_odbc.h"
|
||||
#include "php_pdo_odbc_int.h"
|
||||
#include "pdo_odbc_arginfo.h"
|
||||
|
||||
/* {{{ pdo_odbc_deps[] */
|
||||
static const zend_module_dep pdo_odbc_deps[] = {
|
||||
@@ -96,6 +97,8 @@ PHP_MINIT_FUNCTION(pdo_odbc)
|
||||
}
|
||||
#endif
|
||||
|
||||
register_pdo_odbc_symbols(module_number);
|
||||
|
||||
REGISTER_PDO_CLASS_CONST_LONG("ODBC_ATTR_USE_CURSOR_LIBRARY", PDO_ODBC_ATTR_USE_CURSOR_LIBRARY);
|
||||
REGISTER_PDO_CLASS_CONST_LONG("ODBC_ATTR_ASSUME_UTF8", PDO_ODBC_ATTR_ASSUME_UTF8);
|
||||
REGISTER_PDO_CLASS_CONST_LONG("ODBC_SQL_USE_IF_NEEDED", SQL_CUR_USE_IF_NEEDED);
|
||||
|
||||
9
ext/pdo_odbc/pdo_odbc.stub.php
Normal file
9
ext/pdo_odbc/pdo_odbc.stub.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
/** @generate-class-entries */
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @cvalue PDO_ODBC_TYPE
|
||||
*/
|
||||
const PDO_ODBC_TYPE = UNKNOWN;
|
||||
9
ext/pdo_odbc/pdo_odbc_arginfo.h
generated
Normal file
9
ext/pdo_odbc/pdo_odbc_arginfo.h
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 7927099133bf60cab0464aae8c9de8f7ef2732bd */
|
||||
|
||||
|
||||
|
||||
static void register_pdo_odbc_symbols(int module_number)
|
||||
{
|
||||
REGISTER_STRING_CONSTANT("PDO_ODBC_TYPE", PDO_ODBC_TYPE, CONST_PERSISTENT);
|
||||
}
|
||||
@@ -4,10 +4,11 @@ Bug #80783 (PDO ODBC truncates BLOB records at every 256th byte)
|
||||
pdo_odbc
|
||||
--SKIPIF--
|
||||
<?php
|
||||
|
||||
require 'ext/pdo/tests/pdo_test.inc';
|
||||
PDOTest::skip();
|
||||
|
||||
if (ODBC_TYPE === "unixODBC") {
|
||||
if (PDO_ODBC_TYPE === "unixODBC") {
|
||||
die("skip Fails with unixODBC");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user