php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51859 Redeclare extended class function causes segmentation error.
Submitted: 2010-05-19 16:06 UTC Modified: 2013-02-18 00:34 UTC
From: timothybrew at googlemail dot com Assigned:
Status: No Feedback Package: Class/Object related
PHP Version: 5.3.2 OS: Linux Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-05-19 16:06 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-19 16:18 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2010-05-19 16:18 UTC] 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.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 16:01:28 2024 UTC