#28314 [NEW]: sybase-ct's MSSQL_ASSOC not defined
| From: | adamh at densi dot com | Date: | Fri, 07 May 2004 14:11:41 +0000 |
| Subject: | #28314 [NEW]: sybase-ct's MSSQL_ASSOC not defined | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-59350@lists.php.net to get a copy of this message | ||
From: adamh at densi dot com
Operating system: Linux
PHP version: 4.3.4
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: sybase-ct's MSSQL_ASSOC not defined
Description:
------------
From PEAR's DB.php:
$ar = @mssql_fetch_array($result, MSSQL_ASSOC);
According to the documentation, this should work. On Windows, it does.
However, when using the Sybase CT library (for example, apt-get install
php4-sybase on Debian), this line will fail because MSSQL_ASSOC isn't
defined.
Reproduce code:
---------------
<?php
print MSSQL_ASSOC . "\n";
?>
Expected result:
----------------
0
Actual result:
--------------
PHP Notice: Use of undefined constant MSSQL_ASSOC - assumed 'MSSQL_ASSOC'
in /home/adam/t.php on line 3
Notice: Use of undefined constant MSSQL_ASSOC - assumed 'MSSQL_ASSOC' in
/home/adam/t.php on line 3
MSSQL_ASSOC
--
Edit bug report at http://bugs.php.net/?id=28314&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28314&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28314&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28314&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28314&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28314&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28314&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28314&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28314&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28314&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28314&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28314&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28314&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28314&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28314&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28314&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28314&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28314&r=float