. Fixed bug #48877 ("bindValue" and "bindParam" do not work for PDO Firebird).
(Mariuz)
+- PHP-FPM SAPI:
+ . Fixed bug #60629 (memory corruption when web server closed the fcgi fd).
+ (fat)
+
08 Dec 2011, PHP 5.3.9RC3
return 1;
}
-int fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int len)
+ssize_t fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int len)
{
int limit, rest;
int fcgi_read(fcgi_request *req, char *str, int len);
-int fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int len);
+ssize_t fcgi_write(fcgi_request *req, fcgi_request_type type, const char *str, int len);
int fcgi_flush(fcgi_request *req, int close);
void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, size_t value_len);
static inline size_t sapi_cgibin_single_write(const char *str, uint str_length TSRMLS_DC)
{
- size_t ret;
+ ssize_t ret;
/* sapi has started which means everyhting must be send through fcgi */
if (fpm_is_running) {
if (ret <= 0) {
return 0;
}
- return ret;
+ return (size_t)ret;
}
/* sapi has not started, output to stdout instead of fcgi */
if (ret <= 0) {
return 0;
}
- return ret;
+ return (size_t)ret;
#else
return fwrite(str, 1, MIN(str_length, 16384), stdout);
#endif