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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to