Return to bug24054.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 1: --TEST-- ! 2: Bug #24054 (Assignment operator *= broken) ! 3: --FILE-- ! 4: <?php // $Id: bug24054.phpt 140237 2003-09-13 19:49:50Z abies $ ! 5: ! 6: define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF); ! 7: define('LONG_MIN', -LONG_MAX - 1); ! 8: printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), ! 9: is_int(LONG_MIN-1),is_int(LONG_MAX+1)); ! 10: ! 11: $i = LONG_MAX; ! 12: ! 13: $j = $i * 1001; ! 14: $i *= 1001; ! 15: ! 16: $tests = <<<TESTS ! 17: $i === $j ! 18: TESTS; ! 19: ! 20: include(dirname(__FILE__) . '/../quicktester.inc'); ! 21: ! 22: --EXPECT-- ! 23: 1,1,0,0 ! 24: OK