mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
14 lines
298 B
PHP
14 lines
298 B
PHP
--TEST--
|
|
ZE2 An interface cannot have properties
|
|
--SKIPIF--
|
|
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
interface if_a {
|
|
public $member;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Interfaces may not include member variables in %s on line %d
|