#41061 [Opn->Asn]: "visibility error" in ReflectionFunction::export()

From: Date: Thu, 12 Apr 2007 12:21:07 +0000
Subject: #41061 [Opn->Asn]: "visibility error" in ReflectionFunction::export()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111401@lists.php.net to get a copy of this message
ID: 41061 Updated by: tony2001@php.net Reported By: tony2001@php.net -Status: Open +Status: Assigned Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5CVS-2007-04-12 (CVS) -Assigned To: +Assigned To: helly Previous Comments: ------------------------------------------------------------------------ [2007-04-12 12:20:59] tony2001@php.net Description: ------------ ReflectionFunction() incorrectly presumes function flags can be only private, protected or public. Reproduce code: --------------- function foo(){} $f = new ReflectionFunction("foo"); $f->export("foo"); Expected result: ---------------- Function [ <user> function foo ] { @@ Command line code 1 - 1 } Actual result: -------------- Function [ <user> <visibility error> function foo ] { @@ Command line code 1 - 1 } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41061&edit=1

« previous php.bugs (#111401) next »