Skip to content

Instantly share code, notes, and snippets.

@beberlei
Created Dec 8, 2019
Embed
What would you like to do?

This works:

$ php7.4 -S localhost:8080 -dopcache.enable_cli=1 -dopcache.preload=declare_preload.php run.php
<?php
define('PEAR_ERROR_RETURN', 1);
class PEAR_Error
{
var $mode = PEAR_ERROR_RETURN;
}
<?php
const PEAR_ERROR_RETURN = 1;
opcache_compile_file(__DIR__ . '/declare.php');
<?php
$error = new PEAR_Error();
var_dump($error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment