Edit report at https://bugs.php.net/bug.php?id=42994&edit=1

 ID:                 42994
 Comment by:         info at tueena dot com
 Reported by:        arnout at argeweb dot nl
 Summary:            is_callable and __autoload
 Status:             No Feedback
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   BSD
 PHP Version:        5.2.4
 Block user comment: N
 Private report:     N

 New Comment:

I have a similar problem here: Debian Linux PHP package "PHP 5.3.3-7+squeeze14 
with Suhosin-Patch (cli) (built: Aug  6 2012 14:18:06)":

Reproduce code:
---------------
<?php

spl_autoload_register('testAutoloader');

is_callable(array('A', 'mymethod'));
is_callable(array('Foo', 'mymethod'));
is_callable(array('ALongerClassName', 'mymethod'));

function testAutoloader($sClassName)
{
        print $sClassName . "\n";
}

Expected result:
----------------
A
Foo
ALongerClassName

Actual result:
--------------
A
w
A
w
A
Foo
ffe
Foo
ffe
Foo
ALongerClassName
q9998tg6zai2xxrw
ALongerClassName
q9998tg6zai2xxrw
ALongerClassName


Previous Comments:
------------------------------------------------------------------------
[2010-04-01 14:22:39] sb at lia dot ch

I've seen the same thing on PHP 5.2.9 FreeBSD 7.1-RELEASE-p3:

  <?
  function __autoload($class){ print "trying to load $class\n"; }

  class foo {}

  is_callable(array("foo", "bar"));
  ?>

And I get

  trying to load ffe
  trying to load ffe

Instead of no output.

------------------------------------------------------------------------
[2007-10-25 01:00:01] 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".

------------------------------------------------------------------------
[2007-10-17 09:00:45] [email protected]

In case plain PHP works report it to the FreeBSD guys.
Please keep this bug on "Feedback" till you tested it with clean sources.

------------------------------------------------------------------------
[2007-10-17 08:46:32] arnout at argeweb dot nl

"no FreeBSD patches or something"

I asked the sysadmin.
It has probably been patched by ports. I'll try to get a clean version but that 
might take a while.

I'll try the snapshot too.

If it's the freebsd ports that messes up where do I need to go to get it fixed?

------------------------------------------------------------------------
[2007-10-17 07:55:14] [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

For me it works fine. Please make sure you're using proper source - no FreeBSD 
patches or something.

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=42994


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

Reply via email to