mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed outof memory (length == -1)
This commit is contained in:
parent
10107db61e
commit
84783ecb7e
1 changed files with 1 additions and 1 deletions
|
@ -1394,7 +1394,7 @@ CWD_API int virtual_chdir(const char *path TSRMLS_DC) /* {{{ */
|
||||||
|
|
||||||
CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC) /* {{{ */
|
CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
size_t length = strlen(path);
|
int length = strlen(path);
|
||||||
char *temp;
|
char *temp;
|
||||||
int retval;
|
int retval;
|
||||||
ALLOCA_FLAG(use_heap)
|
ALLOCA_FLAG(use_heap)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue