cvs: php-src /ext/standard php_fopen_wrapper.c

From: Date: Sat, 29 Oct 2005 14:30:00 +0000
Subject: cvs: php-src /ext/standard php_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34862@lists.php.net to get a copy of this message
helly Sat Oct 29 10:30:00 2005 EDT Modified files: /php-src/ext/standard php_fopen_wrapper.c Log: - Register temp and memory stream here http://cvs.php.net/diff.php/php-src/ext/standard/php_fopen_wrapper.c?r1=1.46&r2=1.47&ty=u Index: php-src/ext/standard/php_fopen_wrapper.c diff -u php-src/ext/standard/php_fopen_wrapper.c:1.46 php-src/ext/standard/php_fopen_wrapper.c:1.47 --- php-src/ext/standard/php_fopen_wrapper.c:1.46 Thu Aug 18 09:34:04 2005 +++ php-src/ext/standard/php_fopen_wrapper.c Sat Oct 29 10:29:59 2005 @@ -17,7 +17,7 @@ | Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: php_fopen_wrapper.c,v 1.46 2005/08/18 13:34:04 sniper Exp $ */ +/* $Id: php_fopen_wrapper.c,v 1.47 2005/10/29 14:29:59 helly Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -157,6 +157,14 @@ if (!strncasecmp(path, "php://", 6)) path += 6; + if (!strcasecmp(path, "temp")) { + return php_stream_temp_create(0, PHP_STREAM_MAX_MEM); + } + + if (!strcasecmp(path, "memory")) { + return php_stream_memory_create(0); + } + if (!strcasecmp(path, "output")) { return php_stream_alloc(&php_stream_output_ops, NULL, 0, "wb"); }

« previous php.cvs (#34862) next »