[PHP-DEV] Bug #12676: strpos() ignores first character in haystack

2001-08-09 Thread aragon
=/usr/local' 'i386--freebsd4.3' A possible workaround would be: $astring = abc defg hij kl; $astring = . $astring; if (strpos($astring, abc)) { echo(found\n); } else { echo(not found\n); } The above code echoes found. Regards, Aragon Gouveia -- Edit bug report

[PHP-DEV] Bug #14663: socket_read() doesn't function as documented

2001-12-22 Thread aragon
/home/aragon/squeakbot/test2/b on line b18/bbr Attempting to connect to '209.61.157.217' on port '80'...OK. Sending HTTP HEAD request...OK. Reading response: br bWarning/b: socket_read() expects parameter 2 to be long, string given in b/usr/home/aragon/squeakbot/test2/b on line b38/bbr Closing