andrei Wed Aug 2 20:38:39 2006 UTC
Modified files:
/php-src/ext/standard string.c
Log:
bin2hex() should accept only binary strings.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.556&r2=1.557&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.556 php-src/ext/standard/string.c:1.557
--- php-src/ext/standard/string.c:1.556 Fri Jul 28 12:21:34 2006
+++ php-src/ext/standard/string.c Wed Aug 2 20:38:39 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.556 2006/07/28 12:21:34 tony2001 Exp $ */
+/* $Id: string.c,v 1.557 2006/08/02 20:38:39 andrei Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -195,7 +195,7 @@
char *result;
size_t newlen;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data,
&data_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &data,
&data_len) == FAILURE) {
return;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php