Skip to content

Segmentation fault #48

@jekhy

Description

@jekhy

Hi~ I found a Segmentation fault when I 'clone' a obj:

// Proto file
message Hero {
optional int32 userId = 1;
}
message User {
optional Hero heroes = 1;
}

// PHP code
$user = new User();
$hero = new Hero();
$anotherHero = clone $hero;
$anotherHero->setUserId(1);
$user->appendHeroes($hero); // Segmentation fault

my PHP version IS 5.4.13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions