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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php