summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_006.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-06-03 14:07:15 +0000
committerFelipe Pena <felipe@php.net>2008-06-03 14:07:15 +0000
commit402fb5285d43d94597515847d6dbe822d2eb3130 (patch)
treeb10596a677400f9e7e5d45b5e59854665e93a18d /Zend/tests/magic_methods_006.phpt
parentfe0ef8b17c8d3c3671838e41322038f97d90c62b (diff)
downloadphp-git-402fb5285d43d94597515847d6dbe822d2eb3130.tar.gz
- MFH: Fixed bug #44769 (declaring private magic methods should throw error)
Diffstat (limited to 'Zend/tests/magic_methods_006.phpt')
-rw-r--r--Zend/tests/magic_methods_006.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_006.phpt b/Zend/tests/magic_methods_006.phpt
new file mode 100644
index 0000000000..3fdab062b0
--- /dev/null
+++ b/Zend/tests/magic_methods_006.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Testing __callstatic declaration in interface with missing the 'static' modifier
+--FILE--
+<?php
+
+interface a {
+ function __callstatic($a, $b);
+}
+
+?>
+--EXPECTF--
+Fatal error: The magic method __callStatic() must have public visibility and be static in %s on line %d