zend-db icon indicating copy to clipboard operation
zend-db copied to clipboard

UTF8 should be supported in regex

Open ares333 opened this issue 8 years ago • 1 comments

https://github.com/zendframework/zend-db/blob/master/src/Adapter/Platform/AbstractPlatform.php line 44

$parts = preg_split(
            '/([^0-9,a-z,A-Z$_:])/i',
            $identifier,
            -1,
            PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY
        );

I run into problem because pattern '/([^0-9,a-z,A-Z$_:])/i', doesn't support utf8.

I think pattern modifier 'u' should be added. '/([^0-9,a-z,A-Z$_:])/iu'

ares333 avatar Nov 04 '17 13:11 ares333

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at https://github.com/laminas/laminas-db/issues/61.

michalbundyra avatar Jan 16 '20 19:01 michalbundyra