File php-5.3.5-CVE-2011-3267.patch of Package php5.512

http://svn.php.net/viewvc?view=revision&revision=312417
--- ext/standard/basic_functions.c	2011/06/23 21:45:31	312416
+++ ext/standard/basic_functions.c	2011/06/23 21:48:15	312417
@@ -4678,7 +4678,7 @@
 		opt_err = erropt;
 	}
 
-	if (opt_err == 3) {
+	if (opt_err == 3 && opt) {
 		if (strlen(opt) != opt_len) {
 			RETURN_FALSE;
 		}