note 122945 deleted from function.halt-compiler by cmb
| From: | cmb@php.net | Date: | Sun, 02 Feb 2020 10:05:03 +0000 |
| Subject: | note 122945 deleted from function.halt-compiler by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213988@lists.php.net to get a copy of this message | ||
Note Submitter: ProgMiner
----
This can also be used to define classes after use in a file.
<?php
eval(file_get_contents(__FILE__, false, null, __COMPILER_HALT_OFFSET__));
var_dump(class_exists('Foo'));
__halt_compiler();
class Foo {}