原因はよくわからないがPHP 7.1.7環境下で次のコードを実行するとSegmentation Faultになる。
<?php
class X
{
public function __toString(): string
{
return $this;
}
}
(string) new X;
More than 5 years have passed since last update.
原因はよくわからないがPHP 7.1.7環境下で次のコードを実行するとSegmentation Faultになる。
<?php
class X
{
public function __toString(): string
{
return $this;
}
}
(string) new X;
Register as a new user and use Qiita more conveniently