[Bug 1198882] [NEW] __toString() which stores $this reference triggers segfault
Алексей
rip84 at bk.ru
Mon Jul 8 10:50:23 UTC 2013
Public bug reported:
Bug described on https://bugs.php.net/bug.php?id=60701 not fixes in current version.
Code as
<?php
class A {
public $a;
public function __toString()
{
$this->a = $this;
return 'waa?';
}
}
$a = new A;
echo trim($a);
echo trim($a->a);
?>
crashes in CLI, and run as php mod in apache
** Affects: php5 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1198882
Title:
__toString() which stores $this reference triggers segfault
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1198882/+subscriptions
More information about the Ubuntu-server-bugs
mailing list