Bug #73249 [Com]: <visibility error> for Exception __construct
| From: | remi@php.net | Date: | Wed, 05 Oct 2016 05:35:08 +0000 |
| Subject: | Bug #73249 [Com]: <visibility error> for Exception __construct | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204463@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73249&edit=1
ID: 73249
Comment by: remi@php.net
Reported by: remi@php.net
Summary: <visibility error> for Exception __construct
Status: Open
Type: Bug
Package: *General Issues
Operating System: irrevelant
PHP Version: 7.0.11
Block user comment: N
Private report: N
New Comment:
Various extensions are affected:
- couchbase
- leveldb
- mongo
- pdflib
- protocolbuffers
- stomp
- strict
- varnish
- xmldiff
- yaf
- yar
- zmq
...
Previous Comments:
------------------------------------------------------------------------
[2016-10-05 05:32:03] remi@php.net
Description:
------------
Reflection of some extension start reporting <visibility error>
Example:
Class [ <internal:couchbase> class CouchbaseException extends Exception implements Throwable
] {
Method [ <internal:Core, inherits Exception, ctor> <visibility error> method __construct
] {
Reported as https://issues.couchbase.com/browse/PCBC-437
But this class simply extends core Exception.
Test script:
---------------
zend_class_entry cbe;
INIT_CLASS_ENTRY(cbe, "CouchbaseException", NULL);
cb_exception_ce = zap_zend_register_internal_class_ex(&cbe, zend_exception_get_default());
Expected result:
----------------
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
Actual result:
--------------
Method [ <internal:Core, inherits Exception, ctor> <visibility error> method __construct
] {
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73249&edit=1