cvs: php-src / acinclude.m4

From: Date: Sat, 28 Jun 2003 12:29:43 +0000
Subject: cvs: php-src / acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22121@lists.php.net to get a copy of this message
sas Sat Jun 28 08:29:43 2003 EDT Modified files: /php-src acinclude.m4 Log: MFB snprintf test Index: php-src/acinclude.m4 diff -u php-src/acinclude.m4:1.250 php-src/acinclude.m4:1.251 --- php-src/acinclude.m4:1.250 Sat Jun 28 02:32:02 2003 +++ php-src/acinclude.m4 Sat Jun 28 08:29:43 2003 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.250 2003/06/28 06:32:02 sterling Exp $ +dnl $Id: acinclude.m4,v 1.251 2003/06/28 12:29:43 sas Exp $ dnl dnl This file contains local autoconf functions. @@ -1119,7 +1119,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 (#22121) next »