iliaa Mon May 19 15:18:40 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pgsql pgsql.c /php-src NEWS Log: MFB: Fixed bug #45004 (pg_insert() does not accept 4 digit timezone format) http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.331.2.13.2.27&r2=1.331.2.13.2.28&diff_format=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.331.2.13.2.27 php-src/ext/pgsql/pgsql.c:1.331.2.13.2.28 --- php-src/ext/pgsql/pgsql.c:1.331.2.13.2.27 Mon Dec 31 07:20:10 2007 +++ php-src/ext/pgsql/pgsql.c Mon May 19 15:18:39 2008 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.331.2.13.2.27 2007/12/31 07:20:10 sebastian Exp $ */ +/* $Id: pgsql.c,v 1.331.2.13.2.28 2008/05/19 15:18:39 iliaa Exp $ */ #include <stdlib.h> @@ -5003,7 +5003,7 @@ ZVAL_STRINGL(new_val, "NOW()", sizeof("NOW()")-1, 1); } else { /* FIXME: better regex must be used */ - 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,50})){0,1})){0,1}$", 1 TSRMLS_CC) == FAILURE) { + 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,4}(:[0-9]{1,2}){0,1}|[-a-zA-Z_/+]{1,50})){0,1})){0,1}$", 1 TSRMLS_CC) == FAILURE) { err = 1; } else { ZVAL_STRING(new_val, Z_STRVAL_PP(val), 1); http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1158&r2=1.2027.2.547.2.1159&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1158 php-src/NEWS:1.2027.2.547.2.1159 --- php-src/NEWS:1.2027.2.547.2.1158 Wed May 14 23:53:54 2008 +++ php-src/NEWS Mon May 19 15:18:39 2008 @@ -4,6 +4,8 @@ - Fixed a crash inside PDO when trying instantiate PDORow manually (Felipe) - Fixed build failure of ext/mysqli with libmysql 6.0 - missing rpl functions. (Andrey) +- Fixed bug #45004 (pg_insert() does not accept 4 digit timezone format). + (Ilia) - Fixed bug #44891 Memory leak using registerPHPFunctions and XSLT Variable as function parameter. (Rob) - Fixed bug #44830 (Very minor issue with backslash in heredoc). (Matt)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php