From: Felipe Pena Date: Wed, 8 Apr 2009 00:29:55 +0000 (+0000) Subject: - Added test X-Git-Tag: php-5.4.0alpha1~191^2~3957 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2582b6ca243d7504796c0b5c68f2672b3f2dd9d7;p=php - Added test --- diff --git a/Zend/tests/bug47801.phpt b/Zend/tests/bug47801.phpt new file mode 100644 index 0000000000..3230819268 --- /dev/null +++ b/Zend/tests/bug47801.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #47801 (__call() accessed via parent:: operator is provided incorrect method name) +--FILE-- +getFoo(); + +$b = new B(); +$b->getFoo(); + +?> +--EXPECT-- +magic method called: getFoo +magic method called: getFoo diff --git a/ext/date/tests/bug46108.phpt b/ext/date/tests/bug46108.phpt new file mode 100644 index 0000000000..12fdfa7e5d --- /dev/null +++ b/ext/date/tests/bug46108.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #46108 (DateTime - Memory leak when unserializing) +--FILE-- + +--EXPECTF-- +object(DateTime)#%d (3) { + [%u|b%"date"]=> + %string|unicode%(%d) "%s" + [%u|b%"timezone_type"]=> + int(%d) + [%u|b%"timezone"]=> + %string|unicode%(%d) "America/Sao_Paulo" +}