windows build broken in php_scandir
| From: | Stanislav Malyshev | Date: | Fri, 01 Dec 2006 19:38:45 +0000 |
| Subject: | windows build broken in php_scandir | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-26754@lists.php.net to get a copy of this message | ||
Latest patch to php_scandir:
http://cvs.php.net/viewvc.cgi/php-src/main/php_scandir.c?r1=1.12.2.1&r2=1.12.2.1.2.1
Seems to break windows build in two places:
main\php_scandir.c(65) : error C2065: 'MAXPATHLEN' : undeclared identifier
main\php_scandir.c(65) : error C2057: expected constant expression
main\php_scandir.c(65) : error C2466: cannot allocate an array of constant size 0
main\php_scandir.c(65) : error C2133: 'entry' : unknown size
main\php_scandir.c(76) : warning C4013: 'php_readdir_r' undefined; assuming extern returning int
main\php_scandir.c(76) : warning C4047: '=' : 'dirent *' differs in levels of indirection from 'int'
I'll try to fix it.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/