mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00

Updates the `IMAPConnection` class stub to make sure it has the `final` flag, and adds a test to verify it.
11 lines
304 B
PHP
11 lines
304 B
PHP
--TEST--
|
|
Check that IMAPConnection is declared final
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('imap') or die('skip imap extension not available in this build');
|
|
--FILE--
|
|
<?php
|
|
|
|
class T extends IMAPConnection {}
|
|
--EXPECTF--
|
|
Fatal error: Class T may not inherit from final class (IMAPConnection) in %s on line %d
|