From: Operating system: Linux Ubuntu PHP version: 5.3.2 Package: Class/Object related Bug Type: Bug Bug description:Redeclare extended class function causes segmentation error.
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 bug report at http://bugs.php.net/bug.php?id=51859&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51859&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51859&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51859&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51859&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51859&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51859&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51859&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51859&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51859&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51859&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51859&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51859&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51859&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51859&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51859&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51859&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51859&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51859&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51859&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51859&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51859&r=mysqlcfg
