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

From: Date: Thu, 12 Apr 2007 18:41:30 +0000
Subject: #41061 [Asn->Csd]: "visibility error" in ReflectionFunction::export()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111426@lists.php.net to get a copy of this message
ID: 41061 Updated by: johannes@php.net Reported By: tony2001@php.net -Status: Assigned +Status: Closed Bug Type: Class/Object related Operating System: Linux PHP Version: 5CVS-2007-04-12 (CVS) -Assigned To: helly +Assigned To: johannes New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. 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 (#111426) next »