Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Created May 8, 2014 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihabunek/f1d7a11086483c603174 to your computer and use it in GitHub Desktop.
Save ihabunek/f1d7a11086483c603174 to your computer and use it in GitHub Desktop.
Weird error reporting in ReactPHP
{
"require": {
"react/event-loop": "0.4.*"
}
}
<?php
require 'vendor/autoload.php';
$loop = React\EventLoop\Factory::create();
var_dump(ini_get('error_reporting')); // 32767
$loop->addTimer(0, function () {
var_dump(ini_get('error_reporting')); // 0
die;
});
$loop->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment