#43044 [Opn->Bgs]: Something is wrong with the pseudo-objects
| From: | johannes@php.net | Date: | Fri, 19 Oct 2007 19:12:50 +0000 |
| Subject: | #43044 [Opn->Bgs]: Something is wrong with the pseudo-objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118732@lists.php.net to get a copy of this message | ||
ID: 43044
Updated by: johannes@php.net
Reported By: programatorfreez at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Gentoo GNU/Linux
PHP Version: 5.2.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Your'e having an infinite recursion
Previous Comments:
------------------------------------------------------------------------
[2007-10-19 18:53:49] programatorfreez at gmail dot com
Description:
------------
Something is wrong
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
ini_set('ignore_repeated_errors', 'off');
//defined('IS_USER') or die('Do not try to hack.');
class phpIsFuckingShit {
var $input;
function __construct() {
$input = new phpIsFuckingShit();
}
}
class input {
var $text;
function __construct() {
$text = new inputText();
}
}
class inputText {
private $caption;
function caption($arg = null) {
if (null === $caption) {
return $this->caption;
} else {
$this->caption = $arg;
}
}
}
$itIsSenseLessPseudoLanguage = new phpIsFuckingShit;
$itIsSenseLessPseudoLanguage->input->text->caption('Hello world');
$why = $itIsSenseLessPseudoLanguage->input->text->caption();
echo "'" . $why . "'";
?>
Expected result:
----------------
'Hello world'
Actual result:
--------------
SEGFAULT
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43044&edit=1