We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a928a24 commit fa684c5Copy full SHA for fa684c5
main/fopen_wrappers.c
@@ -247,16 +247,16 @@ PHPAPI int php_check_open_basedir(char *path)
247
*/
248
static FILE *php_fopen_and_set_opened_path(const char *path, char *mode, char **opened_path)
249
{
250
- FILE *fp;
+ FILE *fp;
251
252
- if (php_check_open_basedir((char *)path)) {
253
- return NULL;
254
- }
255
- fp = VCWD_FOPEN(path, mode);
256
- if (fp && opened_path) {
257
- *opened_path = expand_filepath(path,NULL);
258
259
- return fp;
+ if (php_check_open_basedir((char *)path)) {
+ return NULL;
+ }
+ fp = VCWD_FOPEN(path, mode);
+ if (fp && opened_path) {
+ *opened_path = expand_filepath(path,NULL);
+ return fp;
260
}
261
/* }}} */
262
0 commit comments