Annotation of embedaddon/php/Zend/tests/bug52484_2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #52484.2 (__set() ignores setting properties with empty names)
! 3: --FILE--
! 4: <?php
! 5:
! 6: class A {
! 7: function __set($prop, $val) {
! 8: $this->$prop = $val;
! 9: }
! 10: }
! 11:
! 12: $a = new A();
! 13: $prop = null;
! 14:
! 15: $a->$prop = 2;
! 16:
! 17: ?>
! 18: --EXPECTF--
! 19: Fatal error: Cannot access empty property in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>