note 78618 added to function.is-callable

From: Date: Fri, 19 Oct 2007 14:35:49 +0000
Subject: note 78618 added to function.is-callable
Groups: php.notes 
Request: Send a blank email to php-notes+get-131544@lists.php.net to get a copy of this message
As empyone noted, early versions of php 5 incorrectly returned true if is_callable checked on a protected or private method. Later versions of php 5 will now only return true if the method is public and can be called externally. I do not know precisely when this behavior was changed, so you may have to test on your own. But sometime between 5.0.4, which empyone said he was using, and 5.2.4 where I tested it myself, the behavior was modified. ---- Server IP: 64.71.164.2 Probable Submitter: 204.111.105.234 ---- Manual Page -- http://www.php.net/manual/en/function.is-callable.php Edit -- https://master.php.net/note/edit/78618 Del: integrated -- https://master.php.net/note/delete/78618/integrated Del: useless -- https://master.php.net/note/delete/78618/useless Del: bad code -- https://master.php.net/note/delete/78618/bad+code Del: spam -- https://master.php.net/note/delete/78618/spam Del: non-english -- https://master.php.net/note/delete/78618/non-english Del: in docs -- https://master.php.net/note/delete/78618/in+docs Del: other reasons-- https://master.php.net/note/delete/78618 Reject -- https://master.php.net/note/reject/78618 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131544) next »