cvs: php4(PHP_4_3) /main streams.c

From: Date: Tue, 15 Apr 2003 01:30:59 +0000
Subject: cvs: php4(PHP_4_3) /main streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20283@lists.php.net to get a copy of this message
iliaa Mon Apr 14 21:30:59 2003 EDT Modified files: (Branch: PHP_4_3) /php4/main streams.c Log: Fixed bug #23201 (set_file_buffer() crashes with stdio streams). #Already in PHP 5.0 no need for MFH Index: php4/main/streams.c diff -u php4/main/streams.c:1.125.2.50 php4/main/streams.c:1.125.2.51 --- php4/main/streams.c:1.125.2.50 Sun Apr 13 16:31:16 2003 +++ php4/main/streams.c Mon Apr 14 21:30:59 2003 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.125.2.50 2003/04/13 20:31:16 helly Exp $ */ +/* $Id: streams.c,v 1.125.2.51 2003/04/15 01:30:59 iliaa Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1626,6 +1626,10 @@ #endif case PHP_STREAM_OPTION_WRITE_BUFFER: + if (data->file == NULL) { + return -1; + } + if (ptrparam) size = *(size_t *)ptrparam; else

« previous php.cvs (#20283) next »