Skip to content

Commit 3c99383

Browse files
bug #32981 Fix tests/code for php 7.4 (jderusse)
This PR was merged into the 3.4 branch. Discussion ---------- Fix tests/code for php 7.4 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32844 | License | MIT | Doc PR | NA Fix remaining tests and deprecation Commits ------- 05ec8a08b4 Fix remaining tests
2 parents 5fc970c + 0d310a6 commit 3c99383

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)