#29354 [Fbk->Opn]: Exception constructor marked as both public and protected

From: Date: Mon, 26 Jul 2004 11:07:30 +0000
Subject: #29354 [Fbk->Opn]: Exception constructor marked as both public and protected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63547@lists.php.net to get a copy of this message
ID: 29354 User updated by: Jared dot Williams1 at ntlworld dot com Reported By: Jared dot Williams1 at ntlworld dot com -Status: Feedback +Status: Open Bug Type: Class/Object related Operating System: Windows 2000/IIS PHP Version: 5.0.0 New Comment: No, just standard & Reflection. Previous Comments: ------------------------------------------------------------------------ [2004-07-26 03:18:46] helly@php.net Are you using extension com_dotnet? ------------------------------------------------------------------------ [2004-07-26 02:35:25] Jared dot Williams1 at ntlworld dot com Still reports the Exception constructor as both public & protected. PHP Version 5.1.0-dev System Windows NT WIN2KS 5.0 build 2195 Build Date Jul 26 2004 00:23:15 ------------------------------------------------------------------------ [2004-07-25 19:54:05] helly@php.net 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 ------------------------------------------------------------------------ [2004-07-23 17:57:09] Jared dot Williams1 at ntlworld dot com Description: ------------ Exception class constructor when inspected via the Reflection api, seems to be both marked a public and protected. Reproduce code: --------------- $exceptionClass = new ReflectionClass('Exception'); $exceptionConstructor = $exceptionClass->getConstructor(); var_dump($exceptionConstructor->isPublic()); var_dump($exceptionConstructor->isProtected()); Expected result: ---------------- bool(true) bool(false) or bool(false) bool(true) Actual result: -------------- bool(true) bool(true) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29354&edit=1

« previous php.bugs (#63547) next »