Bug #78570 [Opn->Fbk]: no error printing if parent class's __destruct not defined

From: Date: Fri, 20 Sep 2019 07:46:28 +0000
Subject: Bug #78570 [Opn->Fbk]: no error printing if parent class's __destruct not defined
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222839@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78570&edit=1

 ID:                 78570
 Updated by:         nikic@php.net
 Reported by:        747937257 at qq dot com
 Summary:            no error printing if parent class's __destruct not
                     defined
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   fedore
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Works for me: https://3v4l.org/E4STq


Previous Comments:
------------------------------------------------------------------------
[2019-09-20 02:23:36] 747937257 at qq dot com

Description:
------------
if sub claas trys to call
parent::__destruct

and it's not defined in parent class
php will exit without any error printing

in this case, it's very hard to know what happened




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78570&edit=1


Thread (3 messages)

« previous php.bugs (#222839) next »