Skip to content

Commit c814b32

Browse files
committed
We don't cache custom strems with callbacks anymore
1 parent f074870 commit c814b32

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,23 +1323,6 @@ static zend_persistent_script *compile_and_cache_file(zend_file_handle *file_han
13231323
return NULL;
13241324
}
13251325

1326-
#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO
1327-
if (file_handle->type == ZEND_HANDLE_STREAM &&
1328-
(!strstr(file_handle->filename, ".phar") ||
1329-
strstr(file_handle->filename, "://"))) {
1330-
char *buf;
1331-
size_t size;
1332-
1333-
/* Stream callbacks needs to be called in context of original
1334-
* function and class tables (see: https://bugs.php.net/bug.php?id=64353)
1335-
*/
1336-
if (zend_stream_fixup(file_handle, &buf, &size TSRMLS_CC) == FAILURE) {
1337-
*op_array_p = NULL;
1338-
return NULL;
1339-
}
1340-
}
1341-
#endif
1342-
13431326
if (ZCG(accel_directives).validate_timestamps ||
13441327
ZCG(accel_directives).file_update_protection ||
13451328
ZCG(accel_directives).max_file_size > 0) {

0 commit comments

Comments
 (0)