Date: 12/03/00
- Next message: Walter Franzini: "[PHP-DEV] [PATCH] etc/odbc/php_odbc.c"
- Previous message: php <email protected>: "[PHP-DEV] PHP 4.0 Bug #8083 Updated: 3.0.17 causes segm. faults with --enable-versioning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: jcelle <email protected>
Operating system: windows nt 4.0 station
PHP version: 4.0.3pl1
PHP Bug Type: MSSQL related
Bug description: query link identifiers are not usable
This report uses php 4.04 and the php_mssql70.dll extension on windows nt 4.
There seem to be a problem with the functions that accept a mssql_query() link identifier as parameter.
I have the followin basic script :
$hdb = mssql_connect( "testserver", "test", "testpwd" );
print( "hdb = $hdb<br>" );
print( "mssql_select_db : ".mssql_select_db( "test_db", $hdb )."<br>" );
$hcur = mssql_query( "select * from t_test", $hdb );
print( "hcur = $hcur<br>" );
print( "mssql_num_fields : ".mssql_num_fields( $hcur )."<br>" );
print( "mssql_num_rows : ".mssql_num_rows( $hcur )."<br>" );
which produces the following output :
hdb = Resource id #1
mssql_select_db : 1
hcur = 1
Warning: Supplied argument is not a valid MS SQL-result resource in c:\php\default.php4 on line 17
mssql_num_fields :
Warning: Supplied argument is not a valid MS SQL-result resource in c:\php\default.php4 on line 18
mssql_num_rows :
-- Edit Bug report at: http://bugs.php.net/?id=8086&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Walter Franzini: "[PHP-DEV] [PATCH] etc/odbc/php_odbc.c"
- Previous message: php <email protected>: "[PHP-DEV] PHP 4.0 Bug #8083 Updated: 3.0.17 causes segm. faults with --enable-versioning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

