aboutsummaryrefslogtreecommitdiff
path: root/php/phpgats2.php
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2022-03-31 23:52:31 -0700
committerMike Buland <mike@xagasoft.com>2022-03-31 23:52:31 -0700
commit70dc5d2d3bc9eb7d0a47685971e56a4767d09221 (patch)
tree7198b213a079b5260048dc6b12a6e809db2ae63d /php/phpgats2.php
parent58fa55cf44c8b87ae3edb8f24fbac128649a7255 (diff)
downloadlibgats-70dc5d2d3bc9eb7d0a47685971e56a4767d09221.tar.gz
libgats-70dc5d2d3bc9eb7d0a47685971e56a4767d09221.tar.bz2
libgats-70dc5d2d3bc9eb7d0a47685971e56a4767d09221.tar.xz
libgats-70dc5d2d3bc9eb7d0a47685971e56a4767d09221.zip
Minor fix to keep php from whining in some cases.
Diffstat (limited to '')
-rw-r--r--php/phpgats2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/phpgats2.php b/php/phpgats2.php
index f97bd89..5bb1738 100644
--- a/php/phpgats2.php
+++ b/php/phpgats2.php
@@ -266,7 +266,7 @@ function _phpgats2__write( $unknown )
266 } 266 }
267 else if( is_string( $unknown ) ) 267 else if( is_string( $unknown ) )
268 { 268 {
269 if( bcmul( $unknown, "1", 0 ) === $unknown ) 269 if( @bcmul( $unknown, "1", 0 ) === $unknown )
270 return _phpgats2_packInteger( $unknown ); 270 return _phpgats2_packInteger( $unknown );
271 return _phpgats2_writeString( $unknown ); 271 return _phpgats2_writeString( $unknown );
272 } 272 }