- Fixed bug #30147 (OO sqlite_fetch_object did not reset error handler). (Wez)
- Fixed bug #30133 (get_current_user() crashes on Windows). (Edin)
- Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez)
+- Fixed bug #30027 (Possible crash inside ftp_get()).
+ (cfield at affinitysolutions dot com)
- Fixed bug #27798 (private / protected variables not exposed by
get_object_vars() inside class). (Marcus)
ptr = s;
}
#else
- while ((s = memchr(ptr, '\r', (e - ptr)))) {
+ while (e > ptr && (s = memchr(ptr, '\r', (e - ptr)))) {
php_stream_write(outstream, ptr, (s - ptr));
if (*(s + 1) == '\n') {
s++;
+ php_stream_putc(outstream, '\n');
}
- php_stream_putc(outstream, '\n');
ptr = s + 1;
}
#endif