summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-03-26 20:07:34 +0000
committerArd Biesheuvel <abies@php.net>2004-03-26 20:07:34 +0000
commitf51237d7263b0b1d1c4496b88d2befa91e66c394 (patch)
treefc2a252c2279d2c0d4755322b321306aa6408937
parentb1061c74433f5ab2fad3da4edd9b00f800cb9c73 (diff)
downloadphp-git-f51237d7263b0b1d1c4496b88d2befa91e66c394.tar.gz
MFH
-rw-r--r--tests/lang/bug24054.phpt23
1 files changed, 15 insertions, 8 deletions
diff --git a/tests/lang/bug24054.phpt b/tests/lang/bug24054.phpt
index 6800cb39b4..fc51c83d77 100644
--- a/tests/lang/bug24054.phpt
+++ b/tests/lang/bug24054.phpt
@@ -1,17 +1,24 @@
--TEST--
Bug #24054 (Assignment operator *= broken)
--FILE--
-<?php
+<?php // $Id$
- $i = 10000000;
+define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF);
+define('LONG_MIN', -LONG_MAX - 1);
+printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ),
+ is_int(LONG_MIN-1),is_int(LONG_MAX+1));
+
+ $i = LONG_MAX;
+
+ $j = $i * 1001;
$i *= 1001;
- $j = 10000000;
- $j = $j * 1001;
+$tests = <<<TESTS
+$i === $j
+TESTS;
- var_dump($i,$j);
+include(dirname(__FILE__) . '/../quicktester.inc');
-?>
--EXPECT--
-float(1.001E+10)
-float(1.001E+10)
+1,1,0,0
+OK