1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/Zend/tests/enum/no-destruct.phpt
Ilija Tovilo 269c8dac1d Implement enums
RFC: https://wiki.php.net/rfc/enumerations

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

Closes GH-6489.
2021-03-17 19:08:03 +01:00

13 lines
178 B
PHP

--TEST--
Enum disallows destructor
--FILE--
<?php
enum Foo {
public function __destruct() {}
}
?>
--EXPECTF--
Fatal error: Enum may not include __destruct in %s on line %d