--TEST-- zombied streams after sqlsrv_stmt_cancel. --SKIPIF-- --FILE-- getMessage() . PHP_EOL; } sqlsrv_free_stmt( $stmt ); $stmt = sqlsrv_query( $conn, "SELECT review1 FROM cd_info" ); // the fread causes a Function Sequence error in ODBC and doesn't work at all. sqlsrv_fetch( $stmt ); $stream = sqlsrv_get_field( $stmt, 0, SQLSRV_PHPTYPE_STREAM("binary")); sqlsrv_cancel( $stmt ); try { while( !feof( $stream ) && is_resource($stream) ) { $str = fread( $stream, 80 ); echo "$str\n"; } } catch (TypeError $e) { echo $e->getMessage() . PHP_EOL; } sqlsrv_free_stmt( $stmt ); sqlsrv_close( $conn ); ?> --EXPECTREGEX-- Source: Amazon.com \- As it turned out, Led Zeppelins infamous 1969 debut album w as indicative of the decade to come--one that, fittingly, this band helped defin e with its decadently exaggerated, bowdlerized blues-rock. In shrieker Robert Pl ant, ex-Yardbird Jimmy Page found a vocalist who could match his guitar pyrotech nics, and the band pounded out its music with swaggering ferocity and Richter-sc ale-worthy volume. Pumping up blues classics such as Otis Rushs I Cant Quit You Baby and Howlin Wolfs How Many More Times into near-cartoon parodies, the band a lso hinted at things to come with the manic Communication Breakdown and the lumb ering set stopper Dazed and Confused. \--Billy Altman\<\/I\> Source: Amazon.com essential recording - Most critics complain \Back in Black\< feof\(\): supplied resource is not a valid stream resource feof\(\): supplied resource is not a valid stream resource