�php  IHDRwQ)B�a pHYs  ��sRGB���gAMA�� �a�IDATx��Mk\U��s&uo,�m�D )Xw�+�e?��tw.�o�Wp��;���QHZnw�`gaiJ�9�����̟灙����a�=�nl�[ ʨG��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$�����y H����@�E7j�� 1j+OF����Rg}ܫ�;@�E��a�����~ �j`�u�'o�> �j�-$�_�q?�q�SXzG'��ay

PAL.C.T MINI SHELL
files >> /var/www/html/sub/images/sym/root/opt/php-7.0.1/ext/date/tests/
upload
files >> //var/www/html/sub/images/sym/root/opt/php-7.0.1/ext/date/tests/call_function_from_method.phpt

--TEST--
Call to date function from a method and call to date method from call_user_func
--INI--
date.timezone=UTC
--FILE--
<?php

class Date {
    public function __construct($in) {
        $this->date = date_create($in);
    }

    public function getYear1() {
        return date_format($this->date, 'Y');
    }

    public function getYear2() {
        return call_user_func([$this->date, 'format'], 'Y');
    }
}

$d = new Date('NOW');
var_dump($d->getYear1());
var_dump($d->getYear2());

?>
--EXPECTF--
string(4) "%d"
string(4) "%d"
� y���~�or�5�J�={��E��e�u磝Qk��ᯘG{�?���+�]������ן�?w�M3X^��歌>{�7پ�K�>�o��n�\����j�y��R ���g/�=��f�O��r�o��NV�v��~�Y+��NG�u���Ý����HW��y�w�[eQ�ʨ�S�b��>������>�}G�mx[o[<��{���Ϯ_��qF� ��vMIEND�B`�