[PHP-BUG] Bug #69760 [NEW]: segmentation fault php5.5.9
[email protected] ("sett1ngs at hotmail dot com")
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: sett1ngs at hotmail dot com
Operating system: Linux
PHP version: 5.5Git-2015-06-05 (Git)
Package: PHP Language Specification
Bug Type: Bug
Bug description:segmentation fault php5.5.9
Description:
------------
The script can't choose between outputs function , because there 2
function called outputs and each one in another class ...
host@localhost:/var/www/$ php test.php
Segmentation fault
Test script:
---------------
<?php
class Connection{
public $from;
protected $to;
private $user = "sub";
protected function outputs(){
echo "{$this->user} has connected by {$this->from} to
{$this->to}<br>";
}
}
class Connection2 extends Connection{
protected $to = "192.168.1.1";
public function outputs(){
echo "{$this->user} has connected by {$this->from} to {$this->to}
!!!!!!!!<br>";
$this->outputs();
}
}
$opject = new Connection2;
$opject->from = "127.0.0.1";
$opject->outputs();
//$opject->outputs();
?>
Expected result:
----------------
declare error
--
Edit bug report at https://bugs.php.net/bug.php?id=69760&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69760&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69760&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69760&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69760&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69760&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69760&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69760&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69760&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69760&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69760&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69760&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69760&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69760&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69760&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69760&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69760&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69760&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69760&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69760&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69760&r=mysqlcfg