|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-05 16:12 UTC] sett1ngs at hotmail dot com
-PHP Version: 5.5Git-2015-06-05 (Git)
+PHP Version: 5.5.9
[2015-06-05 16:12 UTC] sett1ngs at hotmail dot com
[2015-06-05 16:41 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Package: PHP Language Specification
+Package: Scripting Engine problem
-Assigned To:
+Assigned To: cmb
[2015-06-05 16:41 UTC] cmb@php.net
[2015-06-05 16:46 UTC] cmb@php.net
[2015-06-06 00:16 UTC] datibbaw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 29 07:00:01 2026 UTC |
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