]> granicus.if.org Git - php/commitdiff
Fixed startup errors if ext/exif is loaded without ext/mbstring
authorDmitry Stogov <dmitry@php.net>
Wed, 8 Dec 2010 14:49:26 +0000 (14:49 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 8 Dec 2010 14:49:26 +0000 (14:49 +0000)
Zend/zend_multibyte.c

index 0843413d05ffb1b484b0e49cea5d3ced7a184a0e..3ca5191c0049859bdcd15352e1043b829e3f141d 100644 (file)
@@ -530,7 +530,8 @@ static size_t dummy_encoding_oddlen(const unsigned char *string, size_t length,
 
 static int dummy_encoding_list_checker(const char *encoding_list TSRMLS_DC)
 {
-       return 0;
+       /* ignore encoding */
+       return 1;
 }
 
 static const char* dummy_get_internal_encoding(TSRMLS_D)