cvs: php-src /ext/posix posix.c /ext/posix/tests .cvsignore 001.phpt

From: Date: Sat, 16 Sep 2006 17:42:44 +0000
Subject: cvs: php-src /ext/posix posix.c /ext/posix/tests .cvsignore 001.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40550@lists.php.net to get a copy of this message
nlopess Sat Sep 16 17:42:44 2006 UTC Modified files: /php-src/ext/posix posix.c /php-src/ext/posix/tests .cvsignore 001.phpt Log: MFB http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.78&r2=1.79&diff_format=u Index: php-src/ext/posix/posix.c diff -u php-src/ext/posix/posix.c:1.78 php-src/ext/posix/posix.c:1.79 --- php-src/ext/posix/posix.c:1.78 Thu Aug 31 16:14:43 2006 +++ php-src/ext/posix/posix.c Sat Sep 16 17:42:44 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: posix.c,v 1.78 2006/08/31 16:14:43 tony2001 Exp $ */ +/* $Id: posix.c,v 1.79 2006/09/16 17:42:44 nlopess Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -147,7 +147,7 @@ static PHP_MINFO_FUNCTION(posix) { php_info_print_table_start(); - php_info_print_table_row(2, "Revision", "$Revision: 1.78 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.79 $"); php_info_print_table_end(); } /* }}} */ @@ -766,6 +766,10 @@ } path = expand_filepath(filename, NULL TSRMLS_CC); + if (!path) { + POSIX_G(last_error) = EIO; + RETURN_FALSE; + } if (php_check_open_basedir_ex(path, 0 TSRMLS_CC)) { efree(path); http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/.cvsignore?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/posix/tests/.cvsignore diff -u /dev/null php-src/ext/posix/tests/.cvsignore:1.2 --- /dev/null Sat Sep 16 17:42:44 2006 +++ php-src/ext/posix/tests/.cvsignore Sat Sep 16 17:42:44 2006 @@ -0,0 +1,7 @@ +*.diff +*.log +*.exp +*.out +*.php +*.gcda +*.gcno http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/001.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/posix/tests/001.phpt diff -u /dev/null php-src/ext/posix/tests/001.phpt:1.2 --- /dev/null Sat Sep 16 17:42:44 2006 +++ php-src/ext/posix/tests/001.phpt Sat Sep 16 17:42:44 2006 @@ -0,0 +1,12 @@ +--TEST-- +posix_access() with bogus paths +--SKIPIF-- +<?php if (!extension_loaded('posix')) echo 'skip'; ?> +--FILE-- +<?php + +var_dump(posix_access(str_repeat('bogus path', 1042))); + +?> +--EXPECT-- +bool(false)

« previous php.cvs (#40550) next »