com php-src: Add test for previous commit: Zend/tests/object_ property_ref_incdec.phpt

From: Date: Mon, 26 May 2014 16:13:16 +0000
Subject: com php-src: Add test for previous commit: Zend/tests/object_ property_ref_incdec.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78547@lists.php.net to get a copy of this message
Commit: ff72c7bfd7b018c6b82ed6c97e1a8ac6ba6eebba Author: Nikita Popov <nikic@php.net> Mon, 26 May 2014 18:13:16 +0200 Parents: ec7b5e0b19915a3ace184d519784f33afc64b9d8 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ff72c7bfd7b018c6b82ed6c97e1a8ac6ba6eebba Log: Add test for previous commit Changed paths: A Zend/tests/object_property_ref_incdec.phpt Diff: diff --git a/Zend/tests/object_property_ref_incdec.phpt b/Zend/tests/object_property_ref_incdec.phpt new file mode 100644 index 0000000..10ef341 --- /dev/null +++ b/Zend/tests/object_property_ref_incdec.phpt @@ -0,0 +1,19 @@ +--TEST-- +Inc/dec of reference object properties +--FILE-- +<?php + +$obj = new stdClass; +$obj->cursor = 0; +$ref =& $obj->cursor; + +$obj->cursor++; +var_dump($obj->cursor); + +$obj->cursor--; +var_dump($obj->cursor); + +?> +--EXPECT-- +int(1) +int(0)

« previous php.cvs (#78547) next »