Bug #51859 [Fbk->NoF]: Redeclare extended class function causes segmentation error.
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:34:16 +0000 |
| Subject: | Bug #51859 [Fbk->NoF]: Redeclare extended class function causes segmentation error. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176850@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51859&edit=1
ID: 51859
Updated by: php-bugs@lists.php.net
Reported by: timothybrew at googlemail dot com
Summary: Redeclare extended class function causes segmentation
error.
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Class/Object related
Operating System: Linux Ubuntu
PHP Version: 5.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2010-05-19 16:18:38] mike@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2010-05-19 16:06:52] timothybrew at googlemail dot com
Description:
------------
I am using phpmailer with php 5.3.2. I also had a segmentation fault when using drupal and gallery
2 but I havent got the debug output from that.
I have a class e.g.
class test extends PHPMailer {
.....
function send() {
...
}
}
Now the PHPMailer class has a function $this->Send(). I know this is bad practice and have now
changed the test class function to send_email and the problem is resolved. First off, should there
be a problem as they are different cases and I'm on linux. Second, if there is a conflict
should we not get an error like "PHP warning cannot redeclare function bla bla bla" and
not a segmentation fault?
I'm always up to learn so if this is something I could fix myself with some guidance I am up
for helping.
Thanks Tim
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=51859&edit=1