Bug #69760 [Opn]: segmentation fault php5.5.9
[email protected] ("sett1ngs at hotmail dot com")
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=69760&edit=1
ID: 69760
User updated by: sett1ngs at hotmail dot com
Reported by: sett1ngs at hotmail dot com
Summary: segmentation fault php5.5.9
Status: Open
Type: Bug
Package: PHP Language Specification
Operating System: Linux
-PHP Version: 5.5Git-2015-06-05 (Git)
+PHP Version: 5.5.9
Block user comment: N
Private report: N
New Comment:
PHP Version:5.5.9
Previous Comments:
------------------------------------------------------------------------
[2015-06-05 16:11:01] sett1ngs at hotmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=69760&edit=1