Public bug reported: Linux servername 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Bug found, when using pho5-fpm: Package: php5-fpm Status: install ok installed Priority: optional Section: php Installed-Size: 8081 Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> Architecture: amd64 Source: php5 Version: 5.3.10-1ubuntu3.4 Provides: phpapi-20090626 Depends: libbz2-1.0, libc6 (>= 2.15), libdb5.1, libpcre3 (>= 8.10), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4), mime-support, php5-common (= 5.3.10-1ubuntu3.4), libmagic1, ucf, tzdata Pre-Depends: dpkg (>= 1.15.7.2~) Suggests: php-pear Php application receives registration form with two fields (Name, Surname) in ru_RU UTF-8. I've checked content of $_REQUEST and $_POST, and there array 'client', which contains fields with normal valid UTF-8 strings. But then developer of application getting 'client' array to separate array variable: $c = $_POST['client']; and $c then contains invalid UTF-8 sequences. for example in source was d180d0b8 but in $c it becomes f180d0b8 as you can see, it's invalid sequence and invalid behaviour of php. and then database engine gives error about that. I solved issue by getting values directly: $data = array( 'name' => $_POST['client']['name'], 'sur_name' => $_POST['client']['surName'], ) and it works. But the bug still remains and may cause lots of problems. ** Affects: php-fpm Importance: Undecided Status: New ** Affects: php5 (Ubuntu) Importance: Undecided Status: New ** Tags: array php5-fpm utf-8 ** Also affects: php-fpm Importance: Undecided Status: New ** No longer affects: nova ** Also affects: php5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1083824 Title: php5 UTF-8 bug To manage notifications about this bug go to: https://bugs.launchpad.net/php-fpm/+bug/1083824/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs