File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -1323,30 +1323,22 @@ PHPAPI int php_handle_auth_data(const char *auth SLS_DC)
1323
1323
PHPAPI int php_lint_script (zend_file_handle * file CLS_DC ELS_DC PLS_DC )
1324
1324
{
1325
1325
zend_op_array * op_array ;
1326
- int retval ;
1327
1326
SLS_FETCH ();
1328
1327
1329
- php_hash_environment (ELS_C SLS_CC PLS_CC );
1330
-
1331
- zend_activate_modules ();
1332
- PG (modules_activated )= 1 ;
1333
-
1334
1328
if (setjmp (EG (bailout ))!= 0 ) {
1335
1329
return FAILURE ;
1336
1330
}
1337
1331
1338
- #ifdef PHP_WIN32
1339
- UpdateIniFromRegistry (file -> filename );
1340
- #endif
1341
-
1342
1332
op_array = zend_compile_file (file , ZEND_INCLUDE CLS_CC );
1343
- retval = (op_array ?SUCCESS :FAILURE );
1344
1333
1345
- if (op_array != NULL ) {
1334
+ if (op_array ) {
1346
1335
destroy_op_array (op_array );
1336
+ efree (op_array );
1337
+ zend_destroy_file_handle (file CLS_CC );
1338
+ return SUCCESS ;
1339
+ } else {
1340
+ return FAILURE ;
1347
1341
}
1348
-
1349
- return retval ;
1350
1342
}
1351
1343
/* }}} */
1352
1344
You can’t perform that action at this time.
0 commit comments