Skip to content

Commit b52a294

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: We don't cache custom strems with callbacks anymore
2 parents 25050e3 + c814b32 commit b52a294

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
@@ -1336,23 +1336,6 @@ static zend_persistent_script *compile_and_cache_file(zend_file_handle *file_han
13361336
return NULL;
13371337
}
13381338

1339-
#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO
1340-
if (file_handle->type == ZEND_HANDLE_STREAM &&
1341-
(!strstr(file_handle->filename, ".phar") ||
1342-
strstr(file_handle->filename, "://"))) {
1343-
char *buf;
1344-
size_t size;
1345-
1346-
/* Stream callbacks needs to be called in context of original
1347-
* function and class tables (see: https://bugs.php.net/bug.php?id=64353)
1348-
*/
1349-
if (zend_stream_fixup(file_handle, &buf, &size TSRMLS_CC) == FAILURE) {
1350-
*op_array_p = NULL;
1351-
return NULL;
1352-
}
1353-
}
1354-
#endif
1355-
13561339
if (ZCG(accel_directives).validate_timestamps ||
13571340
ZCG(accel_directives).file_update_protection ||
13581341
ZCG(accel_directives).max_file_size > 0) {

0 commit comments

Comments
 (0)