mirror of
https://github.com/php/php-src.git
synced 2024-12-20 07:20:33 +08:00
05166566db
Also add a test for bwoebi's last change.
9 lines
177 B
PHP
9 lines
177 B
PHP
--TEST--
|
|
Accessing self::FOO outside a class
|
|
--FILE--
|
|
<?php
|
|
var_dump(self::FOO);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot access self:: when no class scope is active in %s on line %d
|