|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-07-21 09:11 UTC] cmb@php.net
-Status: Open
+Status: Verified
-PHP Version: 8.0.0alpha2
+PHP Version: 7.2
-Assigned To:
+Assigned To: stas
[2020-07-21 09:11 UTC] cmb@php.net
[2020-07-21 09:30 UTC] remi@php.net
[2020-08-03 08:09 UTC] stas@php.net
[2020-08-03 08:09 UTC] stas@php.net
-Status: Verified
+Status: Closed
[2020-08-03 08:09 UTC] stas@php.net
[2020-08-03 08:09 UTC] stas@php.net
[2020-08-03 08:10 UTC] stas@php.net
[2020-08-03 09:05 UTC] cmb@php.net
[2020-08-03 09:16 UTC] cmb@php.net
[2020-08-03 09:16 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ PHP_FUNCTION(getimagesize) { php_getimagesize_from_any(INTERNAL_FUNCTION_PARAM_PASSTHRU, FROM_PATH); } static void php_getimagesize_from_any(INTERNAL_FUNCTION_PARAMETERS, int mode) { /* {{{ */ ... ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_STRING(input, input_len) Z_PARAM_OPTIONAL Z_PARAM_ZVAL(info) ZEND_PARSE_PARAMETERS_END(); Test script: --------------- ➜ php-src git:(master) ✗ ./sapi/cli/php -v PHP 8.0.0-dev (cli) (built: Jul 21 2020 10:28:32) ( NTS DEBUG ) Copyright (c) The PHP Group Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies ➜ php-src git:(master) ✗ ./sapi/cli/php -r 'var_dump(getimagesize("/tmp/a.png\0xx"));' array(6) { [0]=> int(292) [1]=> int(67) [2]=> int(3) [3]=> string(23) "width="292" height="67"" ["bits"]=> int(8) ["mime"]=> string(9) "image/png" } Expected result: ---------------- expects parameter 1 to be a valid path, string given in Command line code on line 1