zendframework/zend-db

UTF8 should be supported in regex

Opened this issue · 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'

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#61.