ID:               45582
 Updated by:       [EMAIL PROTECTED]
 Reported By:      m dot golivkin at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SPL related
 Operating System: CentOS release 4.6 (Final)
 PHP Version:      5.2.6
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

I get the expected result with latest CVS of PHP 5.2, 5.3 and 6.


Previous Comments:
------------------------------------------------------------------------

[2008-07-21 14:53:06] m dot golivkin at gmail dot com

Description:
------------
Countable interface dosen't work on server A with php 5.2.6 on CentOS
as with server B with php 5.2.1 on Ubuntu 7.04.

link to phpinfo on server A: 
http://www.asmeniniai-finansai.lt/phpinfo.php

Reproduce code:
---------------
<?php
error_reporting(E_ALL | E_STRICT);
class Foo implements Countable
{
        public function count()
        {
                return 4;
        }
}

$foo = new Foo();

var_dump(count($foo), $foo->count());

?>


Expected result:
----------------
int(4)
int(4)


Actual result:
--------------
int(1)
int(4)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45582&edit=1

Reply via email to