]> granicus.if.org Git - php/commitdiff
Remove php_pdo_str_tolower_dup() function
authorGeorge Peter Banyard <girgias@php.net>
Fri, 12 Mar 2021 02:27:18 +0000 (02:27 +0000)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 15 Mar 2021 14:48:33 +0000 (14:48 +0000)
UPGRADING.INTERNALS
ext/pdo/pdo.c

index 36f24e0626033212d03c4d63179d0e595ec1e565..2c5d1a944de6d5c8233d0be044f162694b935b73 100644 (file)
@@ -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().
index a62e3f6bc3efd8f00eb067460c72666f3d70e320..89c4415c64155d4df19e362fcf1cfc54bc5faeb3 100644 (file)
@@ -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)
 {