1--TEST-- 2Bug #34062 (Crash in catch block when many arguments are used) 3--FILE-- 4<?php 5function f1() { throw new Exception; } 6function f2() { echo "here\n"; } 7 8try { 9 // Currently it's the minimum required number of zeros 10 // If you remove one, it won't crash 11 max(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, f1()); 14} catch (Exception $e) { 15 echo "(((\n"; 16 f2(0, 0, 0); // Won't crash if less than 3 zeros here 17 echo ")))\n"; 18} 19?> 20--EXPECT-- 21((( 22here 23))) 24 25