cvs: php-src(PHP_4_3) /ext/pgsql pgsql.c

From: Date: Thu, 28 Aug 2003 21:09:22 +0000
Subject: cvs: php-src(PHP_4_3) /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23481@lists.php.net to get a copy of this message
andrey Thu Aug 28 17:09:22 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/pgsql pgsql.c Log: MFH : str is string not a long Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.244.2.24 php-src/ext/pgsql/pgsql.c:1.244.2.25 --- php-src/ext/pgsql/pgsql.c:1.244.2.24 Thu Aug 28 13:54:03 2003 +++ php-src/ext/pgsql/pgsql.c Thu Aug 28 17:09:21 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.244.2.24 2003/08/28 17:54:03 iliaa Exp $ */ +/* $Id: pgsql.c,v 1.244.2.25 2003/08/28 21:09:21 andrey Exp $ */ #include <stdlib.h> @@ -2026,7 +2026,8 @@ if (argc > 2) { convert_to_long_ex(z_len); if (Z_LVAL_PP(z_len) > Z_STRLEN_PP(str)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot write more than buffer size %ld. Tried to write %ld.", Z_LVAL_PP(str), Z_LVAL_PP(z_len)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot write more than buffer size %d. Tried to write %ld.", + Z_STRLEN_PP(str), Z_LVAL_PP(z_len)); RETURN_FALSE; } if (Z_LVAL_PP(z_len) < 0) {

« previous php.cvs (#23481) next »