Bug #69760 [Opn]: segmentation fault php5.5.9
| From: | sett1ngs at hotmail dot com | Date: | Fri, 05 Jun 2015 16:12:35 +0000 |
| Subject: | Bug #69760 [Opn]: segmentation fault php5.5.9 | ||
| References: | 1 | Groups: | php.standards |
| Request: | Send a blank email to standards-+get-799@lists.php.net to get a copy of this message | ||
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