Skip to content

extends Tarantool in PHP 7.2 bug #135

Closed
@eugenchenko

Description

@eugenchenko

Example #1:

test.php:
<?php

class A {

}

class B extends A
{
    private $_fcgfgfg = 'test';

    public function __construct()
    {
        print $this->_fcgfgfg;
    }
}

new B();

?>

$ php test.php
test

Example #2:

<?php

class B extends Tarantool
{
    private $_fcgfgfg = 'test';

    public function __construct()
    {
        print $this->_fcgfgfg;
    }
}

new B();

?>

$ php test.php
PHP Notice:  Undefined property: B::$_fcgfgfg in /home/eugenchenko/cryptobot/test.php on line 13

PHP 7.2.7-1+020180622080852.23+jessie1.gbpfd8e2e (cli) (built: Jun 22 2018 09:18:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7-1+020180622080852.23+jessie1.gbpfd8e2e, Copyright (c) 1999-2018, by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions