Bug #51859 [NEW]: Redeclare extended class function causes segmentation error.
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
Thread (3 messages)
- timothybrew at googlemail dot com