diff options
author | Nikita Popov <nikic@php.net> | 2015-03-31 16:10:06 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-03-31 17:55:27 +0200 |
commit | 6ef9216269c0a42898feed90cec9fc4193cad9b6 (patch) | |
tree | 768aff67da6c219c49b34b727d4a109e149be614 /Zend/tests/bug46381.phpt | |
parent | db76b708cf14ed2794d26600c0e49df8aa36fbea (diff) | |
download | php-git-6ef9216269c0a42898feed90cec9fc4193cad9b6.tar.gz |
Finish PHP 4 constructor deprecation
Diffstat (limited to 'Zend/tests/bug46381.phpt')
-rw-r--r-- | Zend/tests/bug46381.phpt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/tests/bug46381.phpt b/Zend/tests/bug46381.phpt index 4d58e9fdf3..6479d0c8a4 100644 --- a/Zend/tests/bug46381.phpt +++ b/Zend/tests/bug46381.phpt @@ -1,17 +1,15 @@ --TEST-- Bug #46381 (wrong $this passed to internal methods causes segfault) ---SKIPIF-- -<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?> --FILE-- <?php class test { - public function test() { + public function method() { return ArrayIterator::current(); } } $test = new test(); -$test->test(); +$test->method(); echo "Done\n"; ?> |