それなら "", で囲むというのは必要ないのでは?

<?php
$bl=array_map("trim",file("bye.log"));

while(list($n,$s)=each($bl))
if(getenv("HTTP_X_UP_SUBNO")==$s)exit;
?>