ID:               45582
 Comment by:       masonsu at 126 dot com
 Reported By:      m dot golivkin at gmail dot com
 Status:           No Feedback
 Bug Type:         SPL related
 Operating System: CentOS release 4.6 (Final)
 PHP Version:      5.2.6
 Assigned To:      fb-req-jani
 New Comment:

I test it with windows php-5.2.5 and there are no problems.


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

[2008-07-29 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2008-07-21 16:35:10] [EMAIL PROTECTED]

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.

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

[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