mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
d30cd7d7e7
Closes GH-5590
18 lines
474 B
PHP
18 lines
474 B
PHP
--TEST--
|
|
BUG #77664 (Segmentation fault when using undefined constant in custom wrapper)
|
|
--FILE--
|
|
<?php
|
|
class ErrorWrapper {
|
|
public $context;
|
|
public $var = self::INVALID;
|
|
}
|
|
stream_wrapper_register('error',ErrorWrapper::class);
|
|
file_get_contents('error://test');
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Undefined constant self::INVALID in %s:%d
|
|
Stack trace:
|
|
#0 %sbug77664.php(%d): file_get_contents('error://test')
|
|
#1 {main}
|
|
thrown in %sbug77664.php on line %d
|