#29433 [Fbk-Csd]: The built in function is_callable, does not return false, on unreachable functi

2004-07-29 Thread freeload at softhome dot net
 ID:   29433
 User updated by:  freeload at softhome dot net
 Reported By:  freeload at softhome dot net
-Status:   Feedback
+Status:   Closed
 Bug Type: *General Issues
 Operating System: Windows NT/XP
 PHP Version:  5.0.0
 New Comment:

Arg, also used php5 rc2 :P, sry! my mistake!! thanx!!


Previous Comments:


[2004-07-29 00:59:04] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

Works just fine here. 



[2004-07-28 18:22:46] freeload at softhome dot net

Description:

The built in function is_callable, does not return false, on
unreachable functions, like protected and private ones.

Reproduce code:
---
?php
class test_class {
   private function test_func1(){}
   protected function test_func2(){}
}
$object = new test_class;

var_dump(is_callable(array($object,'test_func1')));
echo chr(10);
var_dump(is_callable(array($object,'test_func2')));
?


Expected result:

bool(false)
bool(false)

Actual result:
--
bool(true)
bool(true)





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


#29433 [NEW]: The built in function is_callable, does not return false, on unreachable functi

2004-07-28 Thread freeload at softhome dot net
From: freeload at softhome dot net
Operating system: Windows NT/XP
PHP version:  5.0.0
PHP Bug Type: *General Issues
Bug description:  The built in function is_callable, does not return false, on 
unreachable functi

Description:

The built in function is_callable, does not return false, on unreachable
functions, like protected and private ones.

Reproduce code:
---
?php
class test_class {
   private function test_func1(){}
   protected function test_func2(){}
}
$object = new test_class;

var_dump(is_callable(array($object,'test_func1')));
echo chr(10);
var_dump(is_callable(array($object,'test_func2')));
?


Expected result:

bool(false)
bool(false)

Actual result:
--
bool(true)
bool(true)

-- 
Edit bug report at http://bugs.php.net/?id=29433edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29433r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29433r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=29433r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=29433r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29433r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=29433r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=29433r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=29433r=support
Expected behavior:  http://bugs.php.net/fix.php?id=29433r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=29433r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=29433r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=29433r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29433r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=29433r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=29433r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=29433r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29433r=float


#29210 [NEW]: Function: is_callable - no support for private and protected classes

2004-07-16 Thread freeload at softhome dot net
From: freeload at softhome dot net
Operating system: Windows XP
PHP version:  5.0.0
PHP Bug Type: Unknown/Other Function
Bug description:  Function: is_callable - no support for private and protected classes

Description:

The built in function is_callable, does not return false, on unreachable
functions like protected and private ones.

Reproduce code:
---
?php
class test_class {
   private function test_func1(){}
   protected function test_func2(){}
}
$object = new test_class;

var_dump(is_callable(array($object,'test_func1')));
echo chr(10);
var_dump(is_callable(array($object,'test_func2')));
?

Expected result:

bool(false)
bool(false)

Actual result:
--
bool(true)
bool(true)

-- 
Edit bug report at http://bugs.php.net/?id=29210edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29210r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29210r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=29210r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=29210r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29210r=needtrace
Need Reproduce Script:  http://bugs.php.net/fix.php?id=29210r=needscript
Try newer version:  http://bugs.php.net/fix.php?id=29210r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=29210r=support
Expected behavior:  http://bugs.php.net/fix.php?id=29210r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=29210r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=29210r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=29210r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29210r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=29210r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=29210r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=29210r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29210r=float