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

From: Date: Sat, 29 Oct 2005 15:49:28 +0000
Subject: cvs: php-src /ext/standard php_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34869@lists.php.net to get a copy of this message
helly Sat Oct 29 11:49:28 2005 EDT Modified files: /php-src/ext/standard php_fopen_wrapper.c Log: - It's better to use our own strtol here http://cvs.php.net/diff.php/php-src/ext/standard/php_fopen_wrapper.c?r1=1.48&r2=1.49&ty=u Index: php-src/ext/standard/php_fopen_wrapper.c diff -u php-src/ext/standard/php_fopen_wrapper.c:1.48 php-src/ext/standard/php_fopen_wrapper.c:1.49 --- php-src/ext/standard/php_fopen_wrapper.c:1.48 Sat Oct 29 11:09:12 2005 +++ php-src/ext/standard/php_fopen_wrapper.c Sat Oct 29 11:49:28 2005 @@ -17,7 +17,7 @@ | Hartmut Holzgraefe <hholzgra@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: php_fopen_wrapper.c,v 1.48 2005/10/29 15:09:12 helly Exp $ */ +/* $Id: php_fopen_wrapper.c,v 1.49 2005/10/29 15:49:28 helly Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -163,7 +163,7 @@ max_memory = PHP_STREAM_MAX_MEM; if (!strncasecmp(path, "/maxmemory:", 11)) { path += 11; - sscanf(path, "%ld", &max_memory); + max_memory = strtol(path, NULL, 10); if (max_memory < 0) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Max memory must be >= 0"); return NULL;

« previous php.cvs (#34869) next »