com php-src: readd test from 3bb70fe2903acf2caf2600345f07943f34a3b23c: Zend/tests/temporary_cleaning_002.phpt

From: Date: Tue, 21 Jul 2015 12:51:09 +0000
Subject: com php-src: readd test from 3bb70fe2903acf2caf2600345f07943f34a3b23c: Zend/tests/temporary_cleaning_002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88095@lists.php.net to get a copy of this message
Commit: 94e7c770babccfab678211fb9cc8a2e5db8e6d33 Author: Anatol Belski <ab@php.net> Tue, 21 Jul 2015 05:51:09 -0700 Parents: 26abfc8bc94b2153af0995de3da1c18dbf9dc210 Branches: PHP-7.0.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=94e7c770babccfab678211fb9cc8a2e5db8e6d33 Log: readd test from 3bb70fe2903acf2caf2600345f07943f34a3b23c Changed paths: A Zend/tests/temporary_cleaning_002.phpt Diff: diff --git a/Zend/tests/temporary_cleaning_002.phpt b/Zend/tests/temporary_cleaning_002.phpt new file mode 100644 index 0000000..bea54e7 --- /dev/null +++ b/Zend/tests/temporary_cleaning_002.phpt @@ -0,0 +1,32 @@ +--TEST-- +Temporary leak on rope (encapsed string) +--FILE-- +<?php +class Obj { + function __get($x) { + throw new Exception(); + } +} + +$x = new Obj; +$y = 0; + +try { + $r = "$y|$x->x|"; +} catch (Exception $e) { +} + +try { + $r = "$x->x|$y|"; +} catch (Exception $e) { +} + +try { + $r = "$y|$y|$x->x"; +} catch (Exception $e) { +} + +?> +==DONE== +--EXPECT-- +==DONE==

« previous php.cvs (#88095) next »