#42506 [Opn->Csd]: php_pgsql_convert() timezone parse bug

From: Date: Mon, 03 Sep 2007 15:36:09 +0000
Subject: #42506 [Opn->Csd]: php_pgsql_convert() timezone parse bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117052@lists.php.net to get a copy of this message
ID: 42506 Updated by: iliaa@php.net Reported By: nonunnet at gmail dot com -Status: Open +Status: Closed Bug Type: PostgreSQL related Operating System: * PHP Version: 5.2.4 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-09-01 07:59:39] nonunnet at gmail dot com Description: ------------ '2007-01-01 01:01:01 Asia/Seoul' '2007-01-01 01:01 America/Los_angeles' regex '[a-zA-Z]{1,5}' cannot parse above strings. regex change to '[-a-zA-Z_/+]{1,30}' line 5004 on ext/pgsql/pgsql.c - if (php_pgsql_convert_match(Z_STRVAL_PP(val), "^([0-9]{4}[/-][0-9]{1,2}[/-][0-9]{1,2})([ \\t]+(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1}(\\.[0-9]+){0,1}([ \\t]*([+-][0-9]{1,2}(:[0-9]{1,2}){0,1}|[a-zA-Z]{1,5})){0,1})){0,1}$", 1 TSRMLS_CC) == FA ILURE) { + if (php_pgsql_convert_match(Z_STRVAL_PP(val), "^([0-9]{4}[/-][0-9]{1,2}[/-][0-9]{1,2})([ \\t]+(([0-9]{1,2}:[0-9]{1,2}){1}(:[0-9]{1,2}){0,1}(\\.[0-9]+){0,1}([ \\t]*([+-][0-9]{1,2}(:[0-9]{1,2}){0,1}|[-a-zA-Z_/+]{1,30})){0,1})){0,1}$", 1 TSRMLS_CC) == FA ILURE) { ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42506&edit=1

« previous php.bugs (#117052) next »