File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ PHP 4 NEWS
8
8
- Changed sha1_file() and md5_file() functions to use streams instead of
9
9
low level IO. (Uwe)
10
10
- Fixed memory corruption in stristr(). (Derick)
11
+ - Fixed bug #33214 (odbc_next_result does not signal SQL errors with
12
+ 2-statement SQL batches). (rich at kastle dot com, Tony)
11
13
- Fixed bug #33210 (relax jpeg recursive loop protection). (Ilia)
12
14
- Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier
13
15
misbehave). (Jani)
Original file line number Diff line number Diff line change @@ -2436,8 +2436,10 @@ PHP_FUNCTION(odbc_next_result)
2436
2436
result -> values = NULL ;
2437
2437
}
2438
2438
RETURN_TRUE ;
2439
- }
2440
- else {
2439
+ } else if (rc == SQL_NO_DATA_FOUND ) {
2440
+ RETURN_FALSE ;
2441
+ } else {
2442
+ odbc_sql_error (result -> conn_ptr , result -> stmt , "SQLMoreResults" );
2441
2443
RETURN_FALSE ;
2442
2444
}
2443
2445
}
You can’t perform that action at this time.
0 commit comments