cvs: php-src(PHP_4) / acinclude.m4

From: Date: Sat, 28 Jun 2003 12:29:26 +0000
Subject: cvs: php-src(PHP_4) / acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22120@lists.php.net to get a copy of this message
sas Sat Jun 28 08:29:26 2003 EDT Modified files: (Branch: PHP_4) /php-src acinclude.m4 Log: MFB snprintf test Index: php-src/acinclude.m4 diff -u php-src/acinclude.m4:1.218.2.18 php-src/acinclude.m4:1.218.2.18.4.1 --- php-src/acinclude.m4:1.218.2.18 Sun May 18 21:33:29 2003 +++ php-src/acinclude.m4 Sat Jun 28 08:29:26 2003 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.218.2.18 2003/05/19 01:33:29 sas Exp $ +dnl $Id: acinclude.m4,v 1.218.2.18.4.1 2003/06/28 12:29:26 sas Exp $ dnl dnl This file contains local autoconf functions. @@ -1186,7 +1186,9 @@ int res = 0; res = res || (snprintf(buf, 2, "marcus") != 6); res = res || (buf[1] != '\0'); - res = res || (snprintf(buf, 0, "boerger") != 7); + /* Implementations may consider this as an encoding error */ + snprintf(buf, 0, "boerger"); + /* However, they MUST ignore the pointer */ res = res || (buf[0] != 'm'); res = res || (snprintf(NULL, 0, "boerger") != 7); res = res || (snprintf(buf, sizeof(buf), "%f", 0.12345678) != 8);

« previous php.cvs (#22120) next »