Your message dated Sat, 23 Sep 2006 00:16:20 +0200
with message-id <[EMAIL PROTECTED]>
and subject line bts housecleaning
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: php4-sybase
Version: 4:4.2.3-13
Severity: important
Tags: sid
Hello,
After a fairly recent apt-get upgrade, I'm seeing the following
behavior with queries.
I perform a query that returns 0 results, with sybase_query().
e.g.
$res=sybase_query($sql_select_stmt_with_no_matches)
$res is assigned 1 (which I guess is normal..)
I test for results with $num_results=sybase_num_rows($res); and get the
following error:
Warning: sybase_num_rows(): supplied argument is not a valid Sybase
result resource in /var/www/pigiron/specmn.php on line ##
Again, I'm unsure of sybase_query()'s correct behavior when a query as
no matches. (if it should be "1" or FALSE)
HTH,
Greg
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux clak 2.4.20-xfs #5 Tue Apr 8 22:33:48 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages php4-sybase depends on:
ii libc6 2.3.1-16 GNU C Library: Shared libraries an
ii libct1 0.61-2 libraries for connecting to MS SQL
ii php4 [zendapi-20020429] 4:4.2.3-13 A server-side, HTML-embedded scrip
-- no debconf information
--- End Message ---
--- Begin Message ---
hi,
according to
http://se.php.net/sybase_query
this is the expected behaviour. namely, queries returning no results
return TRUE, not a resource handle, thus passing it unchecked to
another function should result in what you see.
sean
signature.asc
Description: This is a digitally signed message part
--- End Message ---