diff options
author | George Peter Banyard <girgias@php.net> | 2021-03-12 02:27:18 +0000 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2021-03-15 14:48:33 +0000 |
commit | 0807c6cbb003b329488530f87293230e81bcc8f0 (patch) | |
tree | 8d09ba33fb7aac960276b0e95ed51528033d67cb | |
parent | 5e1056edb614fbec5ffbc6b49e5cd714542a455d (diff) | |
download | php-git-0807c6cbb003b329488530f87293230e81bcc8f0.tar.gz |
Remove php_pdo_str_tolower_dup() function
-rw-r--r-- | UPGRADING.INTERNALS | 2 | ||||
-rw-r--r-- | ext/pdo/pdo.c | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 36f24e0626..2c5d1a944d 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -66,3 +66,5 @@ PHP 8.1 INTERNALS UPGRADE NOTES - The last_id handler now returns a zend_string* instead of returning a char* and the length as an out param, and accepts a zend_string* instead of char* for the optional sequence/table name. + - The php_pdo_str_tolower_dup() PDO_API has been removed use zend_str_tolower_dup() + or zend_string_tolower_ex(). diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index a62e3f6bc3..89c4415c64 100644 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -62,14 +62,6 @@ PDO_API zend_class_entry *php_pdo_get_exception(void) /* {{{ */ } /* }}} */ -PDO_API char *php_pdo_str_tolower_dup(const char *src, int len) /* {{{ */ -{ - char *dest = emalloc(len + 1); - zend_str_tolower_copy(dest, src, len); - return dest; -} -/* }}} */ - /* {{{ Return array of available PDO drivers */ PHP_FUNCTION(pdo_drivers) { |