We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dcf36c + 8d7cb8c commit b233ed7Copy full SHA for b233ed7
Zend/zend_vm_gen.php
@@ -2416,6 +2416,12 @@ function gen_vm($def, $skel) {
2416
$max_opcode = 0;
2417
$extra_num = 256;
2418
foreach ($in as $line) {
2419
+ // Handle Windows line endings, GH-17836; since a bunch of regular
2420
+ // expressions below test for a newline at the end, just update the
2421
+ // ending
2422
+ if (substr($line, -2) === "\r\n") {
2423
+ $line = substr_replace($line, "\n", -2);
2424
+ }
2425
++$lineno;
2426
if (strpos($line,"ZEND_VM_HANDLER(") === 0 ||
2427
strpos($line,"ZEND_VM_INLINE_HANDLER(") === 0 ||
0 commit comments