Skip to content

Instantly share code, notes, and snippets.

@PurHur
Last active May 5, 2019 07:18
Show Gist options
  • Save PurHur/4d4bb8548d4adfd5afa093fffc6c8a4b to your computer and use it in GitHub Desktop.
Save PurHur/4d4bb8548d4adfd5afa093fffc6c8a4b to your computer and use it in GitHub Desktop.
Random JIT Error
purhur@purhur-PC MINGW64 ~/php-compiler (master)
$ make test
docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:16.0
4-dev php script/rebuild.php onlyChanged
Compiling /compiler/ext/types/strlen.pre
Compiling /compiler/lib/JIT.pre
Compiling /compiler/lib/JIT/Helper.pre
Compiling /compiler/lib/JIT/Builtin/Internal.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager.pre
Compiling /compiler/lib/JIT/Builtin/Output.pre
Compiling /compiler/lib/JIT/Builtin/Refcount.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager/Native.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager/PHP.pre
Compiling /compiler/lib/JIT/Builtin/Type/String_.pre
Compiling /compiler/lib/JIT/Builtin/Type/Value.pre
Compiling /compiler/lib/JIT/Call/Native.pre
Updating demo files
docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:16.0
4-dev vendor/bin/phpunit
PHPUnit 8.2-g21ee615 by Sebastian Bergmann and contributors.
......F..................................................... 60 / 60 (100%)
Time: 55.35 seconds, Memory: 6.00 MB
There was 1 failure:
1) PHPCompiler\JITTest::testCases with data set #6 ('str_repeat() function test'
, '<?php echo str_repeat("abcdef...?>\r\n', array('str_repeat() function test\r\
n', '<?php echo str_repeat("abcdef...?>\r\n', 'abcdefabcdefabcdef'))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'abcdefabcdefabcdef'
+''
/compiler/test/BaseTest.php:164
/compiler/test/BaseTest.php:145
FAILURES!
Tests: 60, Assertions: 88, Failures: 1.
make: *** [Makefile:70: test] Error 1
purhur@purhur-PC MINGW64 ~/php-compiler (master)
$ make test
docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:16.0
4-dev php script/rebuild.php onlyChanged
Compiling /compiler/ext/types/strlen.pre
Compiling /compiler/lib/JIT.pre
Compiling /compiler/lib/JIT/Helper.pre
Compiling /compiler/lib/JIT/Builtin/Internal.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager.pre
Compiling /compiler/lib/JIT/Builtin/Output.pre
Compiling /compiler/lib/JIT/Builtin/Refcount.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager/Native.pre
Compiling /compiler/lib/JIT/Builtin/MemoryManager/PHP.pre
Compiling /compiler/lib/JIT/Builtin/Type/String_.pre
Compiling /compiler/lib/JIT/Builtin/Type/Value.pre
Compiling /compiler/lib/JIT/Call/Native.pre
Updating demo files
docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:16.0
4-dev vendor/bin/phpunit
PHPUnit 8.2-g21ee615 by Sebastian Bergmann and contributors.
.........................
There was 1 failure:
1) PHPCompiler\JITTest::testCases with data set #11 ('Testing string scanner con
firmance', '<?php echo "\"\t\\'".'\n\\\'a...?>\r\n', array('Testing string scann
er confirmance\r\n', '<?php echo "\"\t\\'".'\n\\\'a...?>\r\n', '" \'\n\'a\
\b\\r\n'))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'" \'\n\'a\\b\'
+''
/compiler/test/BaseTest.php:164
/compiler/test/BaseTest.php:145
FAILURES!
Tests: 58, Assertions: 86, Failures: 1.
make: *** [Makefile:70: test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment