[phc-internals] [phc commit] r1431 - trunk/test/subjects/reduced

codesite-noreply at google.com codesite-noreply at google.com
Fri Jul 4 15:04:14 IST 2008


Author: paul.biggar
Date: Fri Jul  4 07:04:07 2008
New Revision: 1431

Added:
   trunk/test/subjects/reduced/0043.php
   trunk/test/subjects/reduced/0044.php

Log:
Add reduced test cases for the bugs in Foreach.


Added: trunk/test/subjects/reduced/0043.php
==============================================================================
--- (empty file)
+++ trunk/test/subjects/reduced/0043.php	Fri Jul  4 07:04:07 2008
@@ -0,0 +1,7 @@
+<?php
+	// Reduced with command line 'test/framework/reduce -v test/subjects/php_bugs/26396.php'
+	foreach ($usr_langs as $lang) {
+	}
+	foreach ($usr_langs as $lang) {
+	}
+?>

Added: trunk/test/subjects/reduced/0044.php
==============================================================================
--- (empty file)
+++ trunk/test/subjects/reduced/0044.php	Fri Jul  4 07:04:07 2008
@@ -0,0 +1,9 @@
+<?php
+	// Reduced with command line 'test/framework/reduce -v -u -i mir test/subjects/codegen/foreach_shocking.php'
+	$x = array ('d');
+	foreach ($x as &$y) {
+	}
+	foreach ($x as $y => &$z) {
+		echo $z;
+	}
+?>


More information about the phc-internals mailing list