|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-11 09:54 UTC] sniper@php.net
[2002-11-12 01:37 UTC] pinned at spic dot ru
[2002-11-12 01:45 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 08:00:02 2025 UTC |
Following script does select from empty table and shouldn't return anything. <?PHP $ = @OCIlogon("test", "tst", "db"); unset($body); $q = "select * from users"; #table "users" is empty, so no rows should be returned $newsQ = OCIparse($newsDB, $q); $newsRES = OCIexecute($newsQ); OCIfetch($newsQ); $body = OCIresult($newsQ, 1); if($body) { #here php prints garbage print $body; } ?> bash-2.03$ ./php test.php X-Powered-By: PHP/4.2.3 Content-type: text/html IC27S ????bash-2.03$ php compiled with the following options: --without-mysql --with-oci8 --with-mcrypt --with-gd --enable-track-vars --with-mod_charset --enable-discard-path Oracle server version is 8.1.7.4 Client libraries have version 8.1.7.0