cvs: ZendEngine2 /tests bug47801.phpt

"Felipe Pena" <[email protected]> Wed, 08 Apr 2009 00:28:59 -0000
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsfelipe1239150539@cvsserver>
felipe		Wed Apr  8 00:28:59 2009 UTC

  Modified files:              
    /ZendEngine2/tests	bug47801.phpt 
  Log:
  - Added test
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug47801.phpt?r1=1.1&r2=1.2&diff_format=u
Index: ZendEngine2/tests/bug47801.phpt
diff -u /dev/null ZendEngine2/tests/bug47801.phpt:1.2
--- /dev/null	Wed Apr  8 00:28:59 2009
+++ ZendEngine2/tests/bug47801.phpt	Wed Apr  8 00:28:59 2009
@@ -0,0 +1,31 @@
+--TEST--
+Bug #47801 (__call() accessed via parent:: operator is provided incorrect method name)
+--FILE--
+<?php
+
+class A
+{
+  function __call($name, $args)
+  {
+    echo("magic method called: $name\n");
+  }
+}
+
+class B extends A
+{
+  function getFoo()
+  {
+    parent::getFoo();
+  }
+}
+
+$a = new A();
+$a->getFoo();
+
+$b = new B();
+$b->getFoo();
+
+?>
+--EXPECT--
+magic method called: getFoo
+magic method called: getFoo



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php