Exception constructor marked as both public and protected

Bug #29354 Exception constructor marked as both public and protected
Submitted: 2004-07-23 17:57 UTC Modified: 2004-08-03 15:20 UTC
From: Jared dot Williams1 at ntlworld dot com Assigned:
Status: Closed Package: Class/Object related
PHP Version: 5.0.0 OS: Windows 2000/IIS
Private report: No CVE-ID: None

 [2004-07-23 17:57 UTC] 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) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2004-07-26 02:35 UTC] 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-26 03:18 UTC] helly@php.net

Are you using extension com_dotnet?

 [2004-07-26 13:07 UTC] Jared dot Williams1 at ntlworld dot com

No, just standard & Reflection.

 [2004-08-03 15:20 UTC] Jared dot Williams1 at ntlworld dot com

Fixed