note 124704 added to function.odbc-num-rows

From: Date: Mon, 10 Feb 2020 14:14:34 +0000
Subject: note 124704 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-214077@lists.php.net to get a copy of this message
On my server odbc_num_rows() is returning a kind of weird 48bit integer (perhaps it's a 64bit with 16bit heading zeroes...). I found out that i can obtain the correct value by masking the result with 0xffffffff <?php // your $result=odbc_exec(...) $num_rows = odbc_num_rows($result) & 0xffffffff; echo "this works for me: num rows=$num_rows\n"; ?> ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 213.209.215.196) ---- Manual Page -- http://php.net/manual/en/function.odbc-num-rows.php Edit -- https://master.php.net/note/edit/124704 Del: integrated -- https://master.php.net/note/delete/124704/integrated Del: useless -- https://master.php.net/note/delete/124704/useless Del: bad code -- https://master.php.net/note/delete/124704/bad+code Del: spam -- https://master.php.net/note/delete/124704/spam Del: non-english -- https://master.php.net/note/delete/124704/non-english Del: in docs -- https://master.php.net/note/delete/124704/in+docs Del: other reasons-- https://master.php.net/note/delete/124704 Reject -- https://master.php.net/note/reject/124704 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214077) next »