Skip to content

Instantly share code, notes, and snippets.

@lbogdan
Created May 19, 2014 22:42
Show Gist options
  • Select an option

  • Save lbogdan/0d02bf5d9bd9220b9649 to your computer and use it in GitHub Desktop.

Select an option

Save lbogdan/0d02bf5d9bd9220b9649 to your computer and use it in GitHub Desktop.
luck@hhvm-dev:~/dev/facebook/hhvm$ hphp/hhvm/hhvm --version
HipHop VM 3.1.0-dev (dbg)
Compiler: heads/master-0-gd8a76b38834df17dea1faf1901b13d8e68ba04a3
Repo schema: b95de36ef533ec293e848834591b8ca6834c99ba
luck@hhvm-dev:~/dev/facebook/hhvm$ cat test1.php
<?php
namespace Test;
fwrite(STDOUT, 'test' . PHP_EOL);
luck@hhvm-dev:~/dev/facebook/hhvm$ hphp/hhvm/hhvm test.php
hhvm: /home/luck/dev/facebook/hhvm/hphp/runtime/base/tv-helpers.cpp:72: bool HPHP::cellIsPlausible(HPHP::Cell): Assertion `false' failed.
Segmentation fault (core dumped)
luck@hhvm-dev:~/dev/facebook/hhvm$ cat test2.php
<?php
namespace Test;
fwrite(\STDOUT, 'test' . PHP_EOL);
luck@hhvm-dev:~/dev/facebook/hhvm$ hphp/hhvm/hhvm test2.php
Assertion failure: (inst.mayRaiseError() && !inst.is(CoerceStk)) == (inst.taken() && inst.taken()->isCatch())
(13) t8:{Uninit|InitNull|Bool|Int|Dbl|StaticStr|CountedStr|Res} = LookupCnsE "STDOUT"
/home/luck/dev/facebook/hhvm/hphp/runtime/vm/jit/check.cpp:120: bool HPHP::JIT::{anonymous}::checkBlock(HPHP::JIT::Block*): assertion `(inst.mayRaiseError() && !inst.is(CoerceStk)) == (inst.taken() && inst.taken()->isCatch())' failed.
Core dumped: Aborted
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment