ID:               43044
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to