mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
25 lines
392 B
PHP
25 lines
392 B
PHP
--TEST--
|
|
Bug #70208 (scope information must be preserved with assert())
|
|
--FILE--
|
|
<?php
|
|
|
|
function non_class_scope() {
|
|
return true;
|
|
}
|
|
|
|
class test {
|
|
protected $prop = 1;
|
|
|
|
public function __construct() {
|
|
assert('non_class_scope();');
|
|
var_dump($this->prop);
|
|
}
|
|
}
|
|
|
|
new test;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
|
|
int(1)
|