From: [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]