Bug #14244: A bug about integer operation "/"

From: Date: Tue, 27 Nov 2001 06:06:52 +0000
Subject: Bug #14244: A bug about integer operation "/"
Groups: php.dev 
Request: Send a blank email to php-dev+get-71736@lists.php.net to get a copy of this message
From: poolshark@bmcc.com.cn Operating system: linux PHP version: 4.0.6 PHP Bug Type: Variables related Bug description: A bug about integer operation "/" Here is a short test program : <? #test.php of integer operation by / $total=13; printf ("total %d type %s<BR>",$total,gettype($total)); $each=10; printf ("each %d type %s<BR>",$each,gettype($each)); $page=$total/$each; print ("Page is $page"); ?> The output is 1.3 not as the expect 1 ----------------------------- configure command ./configure --with-apache=/home/zlq/bin/apache_1.3.22 --with-mysql=/mysql --with-xml --with-charset=gb2312 --disable-debug --enable-ftp ------------------------------- INIT_VERSION :sysinit-2.78 HOSTTYPE:i386 -- Edit bug report at: http://bugs.php.net/?id=14244&edit=1

« previous php.dev (#71736) next »