Bug #79010 [Opn->Fbk]: __Call magic function is not invoked
| From: | requinix@php.net | Date: | Sat, 21 Dec 2019 00:54:38 +0000 |
| Subject: | Bug #79010 [Opn->Fbk]: __Call magic function is not invoked | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224453@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79010&edit=1
ID: 79010
Updated by: requinix@php.net
Reported by: stephen at sbillard dot org
Summary: __Call magic function is not invoked
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 7.4.1
Block user comment: N
Private report: N
New Comment:
It'll be really hard to know what's wrong if we can't reproduce it.
Do you have Xdebug installed? If not, try with it and see what happens. Also make sure you have your
error reporting and logging settings set up properly for development and testing.
Previous Comments:
------------------------------------------------------------------------
[2019-12-21 00:26:17] stephen at sbillard dot org
Description:
------------
The magic method __call() appears fault under some conditions. I am unable to create a simple script
that reproduces the issue, though.
I am making a method call on an object where the method does not exist. The object on which the
method is invoked is a 4th level decedent from the object that contains the __call() definition.
When the method is invoked all output to the browser is terminated. In fact, I can inspect parts of
the page that are visible, but if I try to view the source (in Chrome) none is shown.
I am using Wampserver 32 bit version 3.2.2.2. I can switch to PHP version 7.3.13 and the code works.
To get the code to work on version 7.4.1 I have defined an __call() method in the first descendant
object that simply invokes parent::_call().
I have attempted to create a simple test case with these levels of object inheritance, but that
script does not fail. I regret that I cannot interpret the instructions for a gdb backtrace to the
Wampserver environment.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79010&edit=1