com php-src: use portable struct stat: sapi/phpdbg/phpdbg_pro mpt.c

From: Date: Tue, 16 Dec 2014 11:20:58 +0000
Subject: com php-src: use portable struct stat: sapi/phpdbg/phpdbg_pro mpt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83739@lists.php.net to get a copy of this message
Commit: bee4a28433563b9c216ab48502c82771ae69b72d Author: Anatol Belski <ab@php.net> Tue, 16 Dec 2014 11:46:06 +0100 Parents: f1d1185c64e73ae19d7339cfe5e0e0f92da0e4f0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bee4a28433563b9c216ab48502c82771ae69b72d Log: use portable struct stat Changed paths: M sapi/phpdbg/phpdbg_prompt.c Diff: diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index aa431a8..f567a42 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -306,7 +306,7 @@ void phpdbg_string_init(char *buffer TSRMLS_DC) { void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_init TSRMLS_DC) /* {{{ */ { - struct stat sb; + zend_stat_t sb; if (init_file && VCWD_STAT(init_file, &sb) != -1) { FILE *fp = fopen(init_file, "r"); @@ -374,7 +374,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS PHPDBG_COMMAND(exec) /* {{{ */ { - struct stat sb; + zend_stat_t sb; if (VCWD_STAT(param->str, &sb) != FAILURE) { if (sb.st_mode & (S_IFREG|S_IFLNK)) {

« previous php.cvs (#83739) next »