Skip to content

Commit a0e3ca1

Browse files
committed
Merge branch 'master' of git.php.net:php-src
* 'master' of git.php.net:php-src: Fixed bug (Wrong ce cached) apply change from opcache readme to php.ini lucky that the name is not used, fix name of encoder
2 parents a78c7a4 + bcb223a commit a0e3ca1

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Zend/zend_vm_def.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4943,7 +4943,7 @@ ZEND_VM_HANDLER(144, ZEND_ADD_INTERFACE, ANY, CONST)
49434943
CHECK_EXCEPTION();
49444944
ZEND_VM_NEXT_OPCODE();
49454945
}
4946-
CACHE_PTR(opline->op2.literal->cache_slot, ce);
4946+
CACHE_PTR(opline->op2.literal->cache_slot, iface);
49474947
}
49484948

49494949
if (UNEXPECTED((iface->ce_flags & ZEND_ACC_INTERFACE) == 0)) {

Zend/zend_vm_execute.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ static int ZEND_FASTCALL ZEND_ADD_INTERFACE_SPEC_CONST_HANDLER(ZEND_OPCODE_HAND
14831483
CHECK_EXCEPTION();
14841484
ZEND_VM_NEXT_OPCODE();
14851485
}
1486-
CACHE_PTR(opline->op2.literal->cache_slot, ce);
1486+
CACHE_PTR(opline->op2.literal->cache_slot, iface);
14871487
}
14881488

14891489
if (UNEXPECTED((iface->ce_flags & ZEND_ACC_INTERFACE) == 0)) {

ext/gd/gd.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -2963,7 +2963,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
29632963
#if HAVE_GD_BUNDLED
29642964
PHP_FUNCTION(imagexbm)
29652965
{
2966-
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_XBM, "GIF", gdImageXbmCtx);
2966+
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_XBM, "XBM", gdImageXbmCtx);
29672967
}
29682968
#endif
29692969
/* }}} */
@@ -2983,7 +2983,7 @@ PHP_FUNCTION(imagegif)
29832983
Output PNG image to browser or file */
29842984
PHP_FUNCTION(imagepng)
29852985
{
2986-
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG, "GIF", gdImagePngCtxEx);
2986+
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_PNG, "PNG", gdImagePngCtxEx);
29872987
}
29882988
/* }}} */
29892989
#endif /* HAVE_GD_PNG */
@@ -2994,7 +2994,7 @@ PHP_FUNCTION(imagepng)
29942994
Output PNG image to browser or file */
29952995
PHP_FUNCTION(imagewebp)
29962996
{
2997-
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WEBP, "GIF", gdImageWebpCtx);
2997+
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WEBP, "WEBP", gdImageWebpCtx);
29982998
}
29992999
/* }}} */
30003000
#endif /* HAVE_GD_WEBP */
@@ -3005,7 +3005,7 @@ PHP_FUNCTION(imagewebp)
30053005
Output JPEG image to browser or file */
30063006
PHP_FUNCTION(imagejpeg)
30073007
{
3008-
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_JPG, "GIF", gdImageJpegCtx);
3008+
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_JPG, "JPEG", gdImageJpegCtx);
30093009
}
30103010
/* }}} */
30113011
#endif /* HAVE_GD_JPG */
@@ -3015,7 +3015,7 @@ PHP_FUNCTION(imagejpeg)
30153015
Output WBMP image to browser or file */
30163016
PHP_FUNCTION(imagewbmp)
30173017
{
3018-
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, "GIF", gdImageWBMPCtx);
3018+
_php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, "WBMP", gdImageWBMPCtx);
30193019
}
30203020
/* }}} */
30213021
#endif /* HAVE_GD_WBMP */

php.ini-development

+3-3
Original file line numberDiff line numberDiff line change
@@ -1922,12 +1922,12 @@ ldap.max_links = -1
19221922
;opcache.inherited_hack=1
19231923
;opcache.dups_fix=0
19241924

1925-
; The location of the OPcache blacklist file.
1926-
; The OPcache blacklist file is a text file that holds the names of files
1925+
; The location of the OPcache blacklist file (wildcards allowed).
1926+
; Each OPcache blacklist file is a text file that holds the names of files
19271927
; that should not be accelerated. The file format is to add each filename
19281928
; to a new line. The filename may be a full path or just a file prefix
19291929
; (i.e., /var/www/x blacklists all the files and directories in /var/www
1930-
; that start with 'x').
1930+
; that start with 'x'). Line starting with a ; are ignored (comments).
19311931
;opcache.blacklist_filename=
19321932

19331933
; Allows exclusion of large files from being cached. By default all files

php.ini-production

+3-3
Original file line numberDiff line numberDiff line change
@@ -1923,12 +1923,12 @@ ldap.max_links = -1
19231923
;opcache.inherited_hack=1
19241924
;opcache.dups_fix=0
19251925

1926-
; The location of the OPcache blacklist file.
1927-
; The OPcache blacklist file is a text file that holds the names of files
1926+
; The location of the OPcache blacklist file (wildcards allowed).
1927+
; Each OPcache blacklist file is a text file that holds the names of files
19281928
; that should not be accelerated. The file format is to add each filename
19291929
; to a new line. The filename may be a full path or just a file prefix
19301930
; (i.e., /var/www/x blacklists all the files and directories in /var/www
1931-
; that start with 'x').
1931+
; that start with 'x'). Line starting with a ; are ignored (comments).
19321932
;opcache.blacklist_filename=
19331933

19341934
; Allows exclusion of large files from being cached. By default all files

0 commit comments

Comments
 (0)