bug67922.phpt 273 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #67922: Member function not found when dereferencing in write-context
  3. --FILE--
  4. <?php
  5. class C {
  6. public function test() {
  7. return new stdClass;
  8. }
  9. }
  10. $b = new stdClass;
  11. $b->c = new C;
  12. $b->c->test()->d = 'str';
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. ===DONE===