mirror of
https://github.com/php/php-src.git
synced 2026-04-11 10:03:18 +02:00
- Don't need to check doc_root's length twice
This commit is contained in:
@@ -333,7 +333,6 @@ PHPAPI FILE *php_fopen_primary_script(void)
|
||||
#else
|
||||
if (IS_SLASH(*PG(doc_root))) {
|
||||
#endif
|
||||
length = strlen(PG(doc_root));
|
||||
filename = emalloc(length + strlen(path_info) + 2);
|
||||
if (filename) {
|
||||
memcpy(filename, PG(doc_root), length);
|
||||
|
||||
Reference in New Issue
Block a user