Skip to content

Commit 32fa79a

Browse files
Merge branch '3.4' into 4.3
* 3.4: Fix inconsistent return points. Fix remaining tests
2 parents 291c971 + 3c99383 commit 32fa79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Util/XmlUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public static function phpize($value)
234234
return true;
235235
case 'false' === $lowercaseValue:
236236
return false;
237-
case isset($value[1]) && '0b' == $value[0].$value[1]:
237+
case isset($value[1]) && '0b' == $value[0].$value[1] && preg_match('/^0b[01]*$/', $value):
238238
return bindec($value);
239239
case is_numeric($value):
240240
return '0x' === $value[0].$value[1] ? hexdec($value) : (float) $value;

0 commit comments

Comments
 (0)