mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
dbe5725ff3
The extension name should match the name of the ext/ directory, otherwise it will not get picked up by run-tests. It would be possible to remap this in run-tests, but I think it's better to rename the extension to follow the standard format. Other extensions also use underscore instead of hyphen (e.g. pdo_mysql and not pdo-mysql). Of course, the ./configure option remains hyphenated. Closes GH-6613.
19 lines
328 B
PHP
19 lines
328 B
PHP
--TEST--
|
|
Inherit internal static property into userland class
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('zend_test')) die('skip requires zend_test'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test extends _ZendTestClass {
|
|
}
|
|
|
|
var_dump(Test::$_StaticProp);
|
|
_ZendTestClass::$_StaticProp = 42;
|
|
var_dump(Test::$_StaticProp);
|
|
|
|
?>
|
|
--EXPECT--
|
|
NULL
|
|
int(42)
|