Update besar apk finance
This commit is contained in:
Vendored
+91
@@ -6,6 +6,97 @@ $vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'51fcf4e06c07cc00c920b44bcd900e7a' => $vendorDir . '/thecodingmachine/safe/deprecated/apc.php',
|
||||
'47f619d9197b36cf5ab70738d7743fe2' => $vendorDir . '/thecodingmachine/safe/deprecated/libevent.php',
|
||||
'ea6bb8a12ef9b68f6ada99058e530760' => $vendorDir . '/thecodingmachine/safe/deprecated/mssql.php',
|
||||
'9a29089eb3ce41a446744c68a00f118c' => $vendorDir . '/thecodingmachine/safe/deprecated/stats.php',
|
||||
'72243e5536b63e298acb6476f01f1aff' => $vendorDir . '/thecodingmachine/safe/lib/special_cases.php',
|
||||
'3f648889e687f31c52f949ba8a9d0873' => $vendorDir . '/thecodingmachine/safe/generated/apache.php',
|
||||
'eeb4581d958421a4244aaa4167c6a575' => $vendorDir . '/thecodingmachine/safe/generated/apcu.php',
|
||||
'04cb0b3c1dac5b5ddb23c14e3d66dbe9' => $vendorDir . '/thecodingmachine/safe/generated/array.php',
|
||||
'450b332a74a9a21e043c5e953485a791' => $vendorDir . '/thecodingmachine/safe/generated/bzip2.php',
|
||||
'6e9b7954ecfd7cbb9ca239319d1acdb6' => $vendorDir . '/thecodingmachine/safe/generated/calendar.php',
|
||||
'2c6d7e8bd2de9a272a9d4d43b0a4304a' => $vendorDir . '/thecodingmachine/safe/generated/classobj.php',
|
||||
'0b8231c1ad0865447c988a4c16b4001f' => $vendorDir . '/thecodingmachine/safe/generated/com.php',
|
||||
'7643a71fe1c3256058c8fee234cb86e5' => $vendorDir . '/thecodingmachine/safe/generated/cubrid.php',
|
||||
'68e1365710575942efc1d55000032cee' => $vendorDir . '/thecodingmachine/safe/generated/curl.php',
|
||||
'02fd26bca803106c5b942a7197c3ad8b' => $vendorDir . '/thecodingmachine/safe/generated/datetime.php',
|
||||
'f4817dcbd956cd221b1c31f6fbd5749c' => $vendorDir . '/thecodingmachine/safe/generated/dir.php',
|
||||
'51c3f2d10ca61a70dbcea0e38d8e902d' => $vendorDir . '/thecodingmachine/safe/generated/eio.php',
|
||||
'1d34f34327ca3e81535963016e3be2c3' => $vendorDir . '/thecodingmachine/safe/generated/errorfunc.php',
|
||||
'4fd0ba2d3717b0424d474bebfdafa2b4' => $vendorDir . '/thecodingmachine/safe/generated/exec.php',
|
||||
'98f4dae054bc7fb19c13be14935cbdd3' => $vendorDir . '/thecodingmachine/safe/generated/fileinfo.php',
|
||||
'5530ae063ba88323eaf0a07904efdf85' => $vendorDir . '/thecodingmachine/safe/generated/filesystem.php',
|
||||
'633f4f134975d70e97bddad83348e91a' => $vendorDir . '/thecodingmachine/safe/generated/filter.php',
|
||||
'fbd163fc68c5faf73d5ed4002ffd836d' => $vendorDir . '/thecodingmachine/safe/generated/fpm.php',
|
||||
'21b511999d61411fab0692ff8795bbed' => $vendorDir . '/thecodingmachine/safe/generated/ftp.php',
|
||||
'85fbd73fc92365cd90526b0ea03cae3a' => $vendorDir . '/thecodingmachine/safe/generated/funchand.php',
|
||||
'51df9c146e0b7dcbdf358d8abd24dbdc' => $vendorDir . '/thecodingmachine/safe/generated/gmp.php',
|
||||
'93bb7fe678d7dcfb1322f8e3475a48b0' => $vendorDir . '/thecodingmachine/safe/generated/gnupg.php',
|
||||
'c171ba99cf316379ff66468392bf4950' => $vendorDir . '/thecodingmachine/safe/generated/hash.php',
|
||||
'5ab4aad4c28e468209fbfcceb2e5e6a5' => $vendorDir . '/thecodingmachine/safe/generated/ibase.php',
|
||||
'4d57409c5e8e576b0c64c08d9d731cfb' => $vendorDir . '/thecodingmachine/safe/generated/ibmDb2.php',
|
||||
'eeb246d5403972a9d62106e4a4883496' => $vendorDir . '/thecodingmachine/safe/generated/iconv.php',
|
||||
'c28a05f498c01b810a714f7214b7a8da' => $vendorDir . '/thecodingmachine/safe/generated/image.php',
|
||||
'8063cd92acdf00fd978b5599eb7cc142' => $vendorDir . '/thecodingmachine/safe/generated/imap.php',
|
||||
'8bd26dbe768e9c9599edad7b198e5446' => $vendorDir . '/thecodingmachine/safe/generated/info.php',
|
||||
'0c577fe603b029d4b65c84376b15dbd5' => $vendorDir . '/thecodingmachine/safe/generated/ingres-ii.php',
|
||||
'd4362910bde43c0f956b52527effd7d4' => $vendorDir . '/thecodingmachine/safe/generated/inotify.php',
|
||||
'696ba49197d9b55f0428a12bb5a818e1' => $vendorDir . '/thecodingmachine/safe/generated/json.php',
|
||||
'9818aaa99c8647c63f8ef62b7a368160' => $vendorDir . '/thecodingmachine/safe/generated/ldap.php',
|
||||
'bcf523ff2a195eb08e0fbb668ed784d0' => $vendorDir . '/thecodingmachine/safe/generated/libxml.php',
|
||||
'68be68a9a8b95bb56cab6109ff03bc88' => $vendorDir . '/thecodingmachine/safe/generated/lzf.php',
|
||||
'bdca804bb0904ea9f53f328dfc0bb8a5' => $vendorDir . '/thecodingmachine/safe/generated/mailparse.php',
|
||||
'b0a3fcac3eaf55445796d6af26b89366' => $vendorDir . '/thecodingmachine/safe/generated/mbstring.php',
|
||||
'98de16b8db03eb0cb4d318b4402215a6' => $vendorDir . '/thecodingmachine/safe/generated/misc.php',
|
||||
'c112440003b56e243b192c11fa9d836e' => $vendorDir . '/thecodingmachine/safe/generated/msql.php',
|
||||
'7cefd81607cd21b8b3a15656eb6465f5' => $vendorDir . '/thecodingmachine/safe/generated/mysql.php',
|
||||
'aaf438b080089c6d0686679cd34aa72e' => $vendorDir . '/thecodingmachine/safe/generated/mysqli.php',
|
||||
'df0ef890e9afbf95f3924feb1c7a89f3' => $vendorDir . '/thecodingmachine/safe/generated/mysqlndMs.php',
|
||||
'db595fee5972867e45c5327010d78735' => $vendorDir . '/thecodingmachine/safe/generated/mysqlndQc.php',
|
||||
'cbac956836b72483dcff1ac39d5c0a0f' => $vendorDir . '/thecodingmachine/safe/generated/network.php',
|
||||
'6c8f89dfbdc117d7871f572269363f25' => $vendorDir . '/thecodingmachine/safe/generated/oci8.php',
|
||||
'169a669966a45c06bf55ed029122729b' => $vendorDir . '/thecodingmachine/safe/generated/opcache.php',
|
||||
'def61bf4fecd4d4bca7354919cd69302' => $vendorDir . '/thecodingmachine/safe/generated/openssl.php',
|
||||
'26bb010649a6d32d4120181458aa6ef2' => $vendorDir . '/thecodingmachine/safe/generated/outcontrol.php',
|
||||
'1212c201fe43c7492a085b2c71505e0f' => $vendorDir . '/thecodingmachine/safe/generated/password.php',
|
||||
'002ebcb842e2c0d5b7f67fe64cc93158' => $vendorDir . '/thecodingmachine/safe/generated/pcntl.php',
|
||||
'86df38612982dade72c7085ce7eca81f' => $vendorDir . '/thecodingmachine/safe/generated/pcre.php',
|
||||
'1cacc3e65f82a473fbd5507c7ce4385d' => $vendorDir . '/thecodingmachine/safe/generated/pdf.php',
|
||||
'1fc22f445c69ea8706e82fce301c0831' => $vendorDir . '/thecodingmachine/safe/generated/pgsql.php',
|
||||
'c70b42561584f7144bff38cd63c4eef3' => $vendorDir . '/thecodingmachine/safe/generated/posix.php',
|
||||
'9923214639c32ca5173db03a177d3b63' => $vendorDir . '/thecodingmachine/safe/generated/ps.php',
|
||||
'7e9c3f8eae2b5bf42205c4f1295cb7a7' => $vendorDir . '/thecodingmachine/safe/generated/pspell.php',
|
||||
'91aa91f6245c349c2e2e88bd0025f199' => $vendorDir . '/thecodingmachine/safe/generated/readline.php',
|
||||
'd43773cacb9e5e8e897aa255e32007d1' => $vendorDir . '/thecodingmachine/safe/generated/rpminfo.php',
|
||||
'f053a3849e9e8383762b34b91db0320b' => $vendorDir . '/thecodingmachine/safe/generated/rrd.php',
|
||||
'775b964f72f827a1bf87c65ab5b10800' => $vendorDir . '/thecodingmachine/safe/generated/sem.php',
|
||||
'816428bd69c29ab5e1ed622af5dca0cd' => $vendorDir . '/thecodingmachine/safe/generated/session.php',
|
||||
'5093e233bedbefaef0df262bfbab0a5c' => $vendorDir . '/thecodingmachine/safe/generated/shmop.php',
|
||||
'01352920b0151f17e671266e44b52536' => $vendorDir . '/thecodingmachine/safe/generated/simplexml.php',
|
||||
'b080617b1d949683c2e37f8f01dc0e15' => $vendorDir . '/thecodingmachine/safe/generated/sockets.php',
|
||||
'2708aa182ddcfe6ce27c96acaaa40f69' => $vendorDir . '/thecodingmachine/safe/generated/sodium.php',
|
||||
'f1b96cb260a5baeea9a7285cda82a1ec' => $vendorDir . '/thecodingmachine/safe/generated/solr.php',
|
||||
'3fd8853757d0fe3557c179efb807afeb' => $vendorDir . '/thecodingmachine/safe/generated/spl.php',
|
||||
'9312ce96a51c846913fcda5f186d58dd' => $vendorDir . '/thecodingmachine/safe/generated/sqlsrv.php',
|
||||
'd3eb383ad0b8b962b29dc4afd29d6715' => $vendorDir . '/thecodingmachine/safe/generated/ssdeep.php',
|
||||
'42a09bc448f441a0b9f9367ea975c0bf' => $vendorDir . '/thecodingmachine/safe/generated/ssh2.php',
|
||||
'ef711077d356d1b33ca0b10b67b0be8f' => $vendorDir . '/thecodingmachine/safe/generated/stream.php',
|
||||
'764b09f6df081cbb2807b97c6ace3866' => $vendorDir . '/thecodingmachine/safe/generated/strings.php',
|
||||
'ef241678769fee4a44aaa288f3b78aa1' => $vendorDir . '/thecodingmachine/safe/generated/swoole.php',
|
||||
'0efc8f6778cba932b9e2a89e28de2452' => $vendorDir . '/thecodingmachine/safe/generated/uodbc.php',
|
||||
'd383d32907b98af53ee9208c62204fd0' => $vendorDir . '/thecodingmachine/safe/generated/uopz.php',
|
||||
'2fd2e4060f7fe772660f002ce38f0b71' => $vendorDir . '/thecodingmachine/safe/generated/url.php',
|
||||
'782249e03deebeaf57b9991ff5493aa0' => $vendorDir . '/thecodingmachine/safe/generated/var.php',
|
||||
'344440cd1cd7200fdb4f12af0d3c587f' => $vendorDir . '/thecodingmachine/safe/generated/xdiff.php',
|
||||
'3599f369219c658a5fb6c4fe66832f62' => $vendorDir . '/thecodingmachine/safe/generated/xml.php',
|
||||
'7fcd313da9fae337051b091b3492c21b' => $vendorDir . '/thecodingmachine/safe/generated/xmlrpc.php',
|
||||
'd668c74cfa92d893b582356733d9a80e' => $vendorDir . '/thecodingmachine/safe/generated/yaml.php',
|
||||
'4af1dca6db8c527c6eed27bff85ff0e5' => $vendorDir . '/thecodingmachine/safe/generated/yaz.php',
|
||||
'fe43ca06499ac37bc2dedd823af71eb5' => $vendorDir . '/thecodingmachine/safe/generated/zip.php',
|
||||
'356736db98a6834f0a886b8d509b0ecd' => $vendorDir . '/thecodingmachine/safe/generated/zlib.php',
|
||||
'0174385c3be07e86008907d06ee66531' => $vendorDir . '/sabberworm/php-css-parser/src/Rule/Rule.php',
|
||||
'98aea6e41b9cb79b379b10f37ba1f0b7' => $vendorDir . '/sabberworm/php-css-parser/src/RuleSet/RuleContainer.php',
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
|
||||
'6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
|
||||
|
||||
Vendored
+2
-2
@@ -9,10 +9,10 @@ return array(
|
||||
'ZipStream\\' => array($vendorDir . '/maennchen/zipstream-php/src'),
|
||||
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||
'Svg\\' => array($vendorDir . '/dompdf/php-svg-lib/src/Svg'),
|
||||
'Safe\\' => array($vendorDir . '/thecodingmachine/safe/lib', $vendorDir . '/thecodingmachine/safe/deprecated', $vendorDir . '/thecodingmachine/safe/generated'),
|
||||
'Sabberworm\\CSS\\' => array($vendorDir . '/sabberworm/php-css-parser/src'),
|
||||
'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
|
||||
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
|
||||
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
|
||||
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
|
||||
'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
|
||||
'PhpOffice\\PhpSpreadsheet\\' => array($vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet'),
|
||||
'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'),
|
||||
|
||||
Vendored
+99
-7
@@ -7,6 +7,97 @@ namespace Composer\Autoload;
|
||||
class ComposerStaticInitf4050d60910444929e3c5dbf99ea090d
|
||||
{
|
||||
public static $files = array (
|
||||
'51fcf4e06c07cc00c920b44bcd900e7a' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/apc.php',
|
||||
'47f619d9197b36cf5ab70738d7743fe2' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/libevent.php',
|
||||
'ea6bb8a12ef9b68f6ada99058e530760' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/mssql.php',
|
||||
'9a29089eb3ce41a446744c68a00f118c' => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated/stats.php',
|
||||
'72243e5536b63e298acb6476f01f1aff' => __DIR__ . '/..' . '/thecodingmachine/safe/lib/special_cases.php',
|
||||
'3f648889e687f31c52f949ba8a9d0873' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/apache.php',
|
||||
'eeb4581d958421a4244aaa4167c6a575' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/apcu.php',
|
||||
'04cb0b3c1dac5b5ddb23c14e3d66dbe9' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/array.php',
|
||||
'450b332a74a9a21e043c5e953485a791' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/bzip2.php',
|
||||
'6e9b7954ecfd7cbb9ca239319d1acdb6' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/calendar.php',
|
||||
'2c6d7e8bd2de9a272a9d4d43b0a4304a' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/classobj.php',
|
||||
'0b8231c1ad0865447c988a4c16b4001f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/com.php',
|
||||
'7643a71fe1c3256058c8fee234cb86e5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/cubrid.php',
|
||||
'68e1365710575942efc1d55000032cee' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/curl.php',
|
||||
'02fd26bca803106c5b942a7197c3ad8b' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/datetime.php',
|
||||
'f4817dcbd956cd221b1c31f6fbd5749c' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/dir.php',
|
||||
'51c3f2d10ca61a70dbcea0e38d8e902d' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/eio.php',
|
||||
'1d34f34327ca3e81535963016e3be2c3' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/errorfunc.php',
|
||||
'4fd0ba2d3717b0424d474bebfdafa2b4' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/exec.php',
|
||||
'98f4dae054bc7fb19c13be14935cbdd3' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/fileinfo.php',
|
||||
'5530ae063ba88323eaf0a07904efdf85' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/filesystem.php',
|
||||
'633f4f134975d70e97bddad83348e91a' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/filter.php',
|
||||
'fbd163fc68c5faf73d5ed4002ffd836d' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/fpm.php',
|
||||
'21b511999d61411fab0692ff8795bbed' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ftp.php',
|
||||
'85fbd73fc92365cd90526b0ea03cae3a' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/funchand.php',
|
||||
'51df9c146e0b7dcbdf358d8abd24dbdc' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/gmp.php',
|
||||
'93bb7fe678d7dcfb1322f8e3475a48b0' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/gnupg.php',
|
||||
'c171ba99cf316379ff66468392bf4950' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/hash.php',
|
||||
'5ab4aad4c28e468209fbfcceb2e5e6a5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ibase.php',
|
||||
'4d57409c5e8e576b0c64c08d9d731cfb' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ibmDb2.php',
|
||||
'eeb246d5403972a9d62106e4a4883496' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/iconv.php',
|
||||
'c28a05f498c01b810a714f7214b7a8da' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/image.php',
|
||||
'8063cd92acdf00fd978b5599eb7cc142' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/imap.php',
|
||||
'8bd26dbe768e9c9599edad7b198e5446' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/info.php',
|
||||
'0c577fe603b029d4b65c84376b15dbd5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ingres-ii.php',
|
||||
'd4362910bde43c0f956b52527effd7d4' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/inotify.php',
|
||||
'696ba49197d9b55f0428a12bb5a818e1' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/json.php',
|
||||
'9818aaa99c8647c63f8ef62b7a368160' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ldap.php',
|
||||
'bcf523ff2a195eb08e0fbb668ed784d0' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/libxml.php',
|
||||
'68be68a9a8b95bb56cab6109ff03bc88' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/lzf.php',
|
||||
'bdca804bb0904ea9f53f328dfc0bb8a5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mailparse.php',
|
||||
'b0a3fcac3eaf55445796d6af26b89366' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mbstring.php',
|
||||
'98de16b8db03eb0cb4d318b4402215a6' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/misc.php',
|
||||
'c112440003b56e243b192c11fa9d836e' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/msql.php',
|
||||
'7cefd81607cd21b8b3a15656eb6465f5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mysql.php',
|
||||
'aaf438b080089c6d0686679cd34aa72e' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mysqli.php',
|
||||
'df0ef890e9afbf95f3924feb1c7a89f3' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mysqlndMs.php',
|
||||
'db595fee5972867e45c5327010d78735' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/mysqlndQc.php',
|
||||
'cbac956836b72483dcff1ac39d5c0a0f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/network.php',
|
||||
'6c8f89dfbdc117d7871f572269363f25' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/oci8.php',
|
||||
'169a669966a45c06bf55ed029122729b' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/opcache.php',
|
||||
'def61bf4fecd4d4bca7354919cd69302' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/openssl.php',
|
||||
'26bb010649a6d32d4120181458aa6ef2' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/outcontrol.php',
|
||||
'1212c201fe43c7492a085b2c71505e0f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/password.php',
|
||||
'002ebcb842e2c0d5b7f67fe64cc93158' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/pcntl.php',
|
||||
'86df38612982dade72c7085ce7eca81f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/pcre.php',
|
||||
'1cacc3e65f82a473fbd5507c7ce4385d' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/pdf.php',
|
||||
'1fc22f445c69ea8706e82fce301c0831' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/pgsql.php',
|
||||
'c70b42561584f7144bff38cd63c4eef3' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/posix.php',
|
||||
'9923214639c32ca5173db03a177d3b63' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ps.php',
|
||||
'7e9c3f8eae2b5bf42205c4f1295cb7a7' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/pspell.php',
|
||||
'91aa91f6245c349c2e2e88bd0025f199' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/readline.php',
|
||||
'd43773cacb9e5e8e897aa255e32007d1' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/rpminfo.php',
|
||||
'f053a3849e9e8383762b34b91db0320b' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/rrd.php',
|
||||
'775b964f72f827a1bf87c65ab5b10800' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/sem.php',
|
||||
'816428bd69c29ab5e1ed622af5dca0cd' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/session.php',
|
||||
'5093e233bedbefaef0df262bfbab0a5c' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/shmop.php',
|
||||
'01352920b0151f17e671266e44b52536' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/simplexml.php',
|
||||
'b080617b1d949683c2e37f8f01dc0e15' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/sockets.php',
|
||||
'2708aa182ddcfe6ce27c96acaaa40f69' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/sodium.php',
|
||||
'f1b96cb260a5baeea9a7285cda82a1ec' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/solr.php',
|
||||
'3fd8853757d0fe3557c179efb807afeb' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/spl.php',
|
||||
'9312ce96a51c846913fcda5f186d58dd' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/sqlsrv.php',
|
||||
'd3eb383ad0b8b962b29dc4afd29d6715' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ssdeep.php',
|
||||
'42a09bc448f441a0b9f9367ea975c0bf' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/ssh2.php',
|
||||
'ef711077d356d1b33ca0b10b67b0be8f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/stream.php',
|
||||
'764b09f6df081cbb2807b97c6ace3866' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/strings.php',
|
||||
'ef241678769fee4a44aaa288f3b78aa1' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/swoole.php',
|
||||
'0efc8f6778cba932b9e2a89e28de2452' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/uodbc.php',
|
||||
'd383d32907b98af53ee9208c62204fd0' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/uopz.php',
|
||||
'2fd2e4060f7fe772660f002ce38f0b71' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/url.php',
|
||||
'782249e03deebeaf57b9991ff5493aa0' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/var.php',
|
||||
'344440cd1cd7200fdb4f12af0d3c587f' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/xdiff.php',
|
||||
'3599f369219c658a5fb6c4fe66832f62' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/xml.php',
|
||||
'7fcd313da9fae337051b091b3492c21b' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/xmlrpc.php',
|
||||
'd668c74cfa92d893b582356733d9a80e' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/yaml.php',
|
||||
'4af1dca6db8c527c6eed27bff85ff0e5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/yaz.php',
|
||||
'fe43ca06499ac37bc2dedd823af71eb5' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/zip.php',
|
||||
'356736db98a6834f0a886b8d509b0ecd' => __DIR__ . '/..' . '/thecodingmachine/safe/generated/zlib.php',
|
||||
'0174385c3be07e86008907d06ee66531' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Rule/Rule.php',
|
||||
'98aea6e41b9cb79b379b10f37ba1f0b7' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/RuleSet/RuleContainer.php',
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
|
||||
'6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
|
||||
@@ -22,13 +113,13 @@ class ComposerStaticInitf4050d60910444929e3c5dbf99ea090d
|
||||
array (
|
||||
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
||||
'Svg\\' => 4,
|
||||
'Safe\\' => 5,
|
||||
'Sabberworm\\CSS\\' => 15,
|
||||
),
|
||||
'P' =>
|
||||
array (
|
||||
'Psr\\SimpleCache\\' => 16,
|
||||
'Psr\\Http\\Message\\' => 17,
|
||||
'Psr\\Http\\Client\\' => 16,
|
||||
'PhpParser\\' => 10,
|
||||
'PhpOffice\\PhpSpreadsheet\\' => 25,
|
||||
),
|
||||
@@ -68,6 +159,12 @@ class ComposerStaticInitf4050d60910444929e3c5dbf99ea090d
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/dompdf/php-svg-lib/src/Svg',
|
||||
),
|
||||
'Safe\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/thecodingmachine/safe/lib',
|
||||
1 => __DIR__ . '/..' . '/thecodingmachine/safe/deprecated',
|
||||
2 => __DIR__ . '/..' . '/thecodingmachine/safe/generated',
|
||||
),
|
||||
'Sabberworm\\CSS\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/sabberworm/php-css-parser/src',
|
||||
@@ -78,12 +175,7 @@ class ComposerStaticInitf4050d60910444929e3c5dbf99ea090d
|
||||
),
|
||||
'Psr\\Http\\Message\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/psr/http-factory/src',
|
||||
1 => __DIR__ . '/..' . '/psr/http-message/src',
|
||||
),
|
||||
'Psr\\Http\\Client\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/psr/http-client/src',
|
||||
0 => __DIR__ . '/..' . '/psr/http-message/src',
|
||||
),
|
||||
'PhpParser\\' =>
|
||||
array (
|
||||
|
||||
Vendored
+270
-245
@@ -2,31 +2,32 @@
|
||||
"packages": [
|
||||
{
|
||||
"name": "composer/pcre",
|
||||
"version": "3.3.2",
|
||||
"version_normalized": "3.3.2.0",
|
||||
"version": "3.4.0",
|
||||
"version_normalized": "3.4.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/pcre.git",
|
||||
"reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e"
|
||||
"reference": "d5a341b3fb61f3001970940afb1d332968a183ed"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e",
|
||||
"reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e",
|
||||
"url": "https://api.github.com/repos/composer/pcre/zipball/d5a341b3fb61f3001970940afb1d332968a183ed",
|
||||
"reference": "d5a341b3fb61f3001970940afb1d332968a183ed",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.4 || ^8.0"
|
||||
},
|
||||
"conflict": {
|
||||
"phpstan/phpstan": "<1.11.10"
|
||||
"phpstan/phpstan": "<2.2.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/phpstan": "^1.12 || ^2",
|
||||
"phpstan/phpstan-strict-rules": "^1 || ^2",
|
||||
"phpunit/phpunit": "^8 || ^9"
|
||||
"phpstan/phpstan": "^2",
|
||||
"phpstan/phpstan-deprecation-rules": "^2",
|
||||
"phpstan/phpstan-strict-rules": "^2",
|
||||
"phpunit/phpunit": "^9"
|
||||
},
|
||||
"time": "2024-11-12T16:29:46+00:00",
|
||||
"time": "2026-06-07T11:47:49+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"phpstan": {
|
||||
@@ -64,7 +65,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/composer/pcre/issues",
|
||||
"source": "https://github.com/composer/pcre/tree/3.3.2"
|
||||
"source": "https://github.com/composer/pcre/tree/3.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -74,10 +75,6 @@
|
||||
{
|
||||
"url": "https://github.com/composer",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "./pcre"
|
||||
@@ -157,17 +154,17 @@
|
||||
},
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"version": "v3.1.4",
|
||||
"version_normalized": "3.1.4.0",
|
||||
"version": "v3.1.6",
|
||||
"version_normalized": "3.1.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/dompdf.git",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623"
|
||||
"reference": "6d4b4eb8500f7a786da8868ba463a71b725a4005"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"reference": "db712c90c5b9868df3600e64e68da62e78a34623",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/6d4b4eb8500f7a786da8868ba463a71b725a4005",
|
||||
"reference": "6d4b4eb8500f7a786da8868ba463a71b725a4005",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -193,7 +190,7 @@
|
||||
"ext-imagick": "Improves image processing performance",
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
},
|
||||
"time": "2025-10-29T12:43:30+00:00",
|
||||
"time": "2026-07-20T12:29:38+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@@ -218,23 +215,23 @@
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/dompdf/issues",
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v3.1.4"
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v3.1.6"
|
||||
},
|
||||
"install-path": "../dompdf/dompdf"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-font-lib",
|
||||
"version": "1.0.1",
|
||||
"version_normalized": "1.0.1.0",
|
||||
"version": "1.0.2",
|
||||
"version_normalized": "1.0.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-font-lib.git",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d"
|
||||
"reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"reference": "6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d",
|
||||
"url": "https://api.github.com/repos/dompdf/php-font-lib/zipball/a6e9a688a2a80016ac080b97be73d3e10c444c9a",
|
||||
"reference": "a6e9a688a2a80016ac080b97be73d3e10c444c9a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -242,9 +239,9 @@
|
||||
"php": "^7.1 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^3 || ^4 || ^5 || ^6"
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
|
||||
},
|
||||
"time": "2024-12-02T14:37:59+00:00",
|
||||
"time": "2026-01-20T14:10:26+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@@ -266,34 +263,34 @@
|
||||
"homepage": "https://github.com/dompdf/php-font-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-font-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-font-lib/tree/1.0.1"
|
||||
"source": "https://github.com/dompdf/php-font-lib/tree/1.0.2"
|
||||
},
|
||||
"install-path": "../dompdf/php-font-lib"
|
||||
},
|
||||
{
|
||||
"name": "dompdf/php-svg-lib",
|
||||
"version": "1.0.0",
|
||||
"version_normalized": "1.0.0.0",
|
||||
"version": "1.0.2",
|
||||
"version_normalized": "1.0.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/php-svg-lib.git",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af"
|
||||
"reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"reference": "eb045e518185298eb6ff8d80d0d0c6b17aecd9af",
|
||||
"url": "https://api.github.com/repos/dompdf/php-svg-lib/zipball/8259ffb930817e72b1ff1caef5d226501f3dfeb1",
|
||||
"reference": "8259ffb930817e72b1ff1caef5d226501f3dfeb1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^7.1 || ^8.0",
|
||||
"sabberworm/php-css-parser": "^8.4"
|
||||
"sabberworm/php-css-parser": "^8.4 || ^9.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
|
||||
},
|
||||
"time": "2024-04-29T13:26:35+00:00",
|
||||
"time": "2026-01-02T16:01:13+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@@ -315,7 +312,7 @@
|
||||
"homepage": "https://github.com/dompdf/php-svg-lib",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/php-svg-lib/issues",
|
||||
"source": "https://github.com/dompdf/php-svg-lib/tree/1.0.0"
|
||||
"source": "https://github.com/dompdf/php-svg-lib/tree/1.0.2"
|
||||
},
|
||||
"install-path": "../dompdf/php-svg-lib"
|
||||
},
|
||||
@@ -579,27 +576,27 @@
|
||||
},
|
||||
{
|
||||
"name": "masterminds/html5",
|
||||
"version": "2.10.0",
|
||||
"version_normalized": "2.10.0.0",
|
||||
"version": "2.11.0",
|
||||
"version_normalized": "2.11.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Masterminds/html5-php.git",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251"
|
||||
"reference": "a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"reference": "fcf91eb64359852f00d921887b219479b4f21251",
|
||||
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7",
|
||||
"reference": "a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"php": ">=5.3.0"
|
||||
"php": ">=7.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
|
||||
"phpunit/phpunit": "^6 || ^7 || ^8 || ^9 || ^10"
|
||||
},
|
||||
"time": "2025-07-25T09:04:22+00:00",
|
||||
"time": "2026-08-18T06:18:41+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@@ -643,7 +640,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Masterminds/html5-php/issues",
|
||||
"source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
|
||||
"source": "https://github.com/Masterminds/html5-php/tree/2.11.0"
|
||||
},
|
||||
"install-path": "../masterminds/html5"
|
||||
},
|
||||
@@ -833,21 +830,20 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v5.7.0",
|
||||
"version_normalized": "5.7.0.0",
|
||||
"version": "v5.8.0",
|
||||
"version_normalized": "5.8.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82"
|
||||
"reference": "044a6a392ff8ad0d61f14370a5fbbd0a0107152f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/044a6a392ff8ad0d61f14370a5fbbd0a0107152f",
|
||||
"reference": "044a6a392ff8ad0d61f14370a5fbbd0a0107152f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-ctype": "*",
|
||||
"ext-json": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"php": ">=7.4"
|
||||
@@ -856,7 +852,7 @@
|
||||
"ircmaxell/php-yacc": "^0.0.7",
|
||||
"phpunit/phpunit": "^9.0"
|
||||
},
|
||||
"time": "2025-12-06T11:56:16+00:00",
|
||||
"time": "2026-07-04T14:30:18+00:00",
|
||||
"bin": [
|
||||
"bin/php-parse"
|
||||
],
|
||||
@@ -888,7 +884,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.8.0"
|
||||
},
|
||||
"install-path": "../nikic/php-parser"
|
||||
},
|
||||
@@ -1018,17 +1014,17 @@
|
||||
},
|
||||
{
|
||||
"name": "phpoffice/phpspreadsheet",
|
||||
"version": "1.30.1",
|
||||
"version_normalized": "1.30.1.0",
|
||||
"version": "1.30.6",
|
||||
"version_normalized": "1.30.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
|
||||
"reference": "fa8257a579ec623473eabfe49731de5967306c4c"
|
||||
"reference": "a416375ffc8bf5b661c1bb4e6c60d8f3fddbe5ce"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/fa8257a579ec623473eabfe49731de5967306c4c",
|
||||
"reference": "fa8257a579ec623473eabfe49731de5967306c4c",
|
||||
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/a416375ffc8bf5b661c1bb4e6c60d8f3fddbe5ce",
|
||||
"reference": "a416375ffc8bf5b661c1bb4e6c60d8f3fddbe5ce",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1051,12 +1047,11 @@
|
||||
"markbaker/complex": "^3.0",
|
||||
"markbaker/matrix": "^3.0",
|
||||
"php": ">=7.4.0 <8.5.0",
|
||||
"psr/http-client": "^1.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "dev-main",
|
||||
"doctrine/instantiator": "^1.5",
|
||||
"dompdf/dompdf": "^1.0 || ^2.0 || ^3.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.2",
|
||||
"mitoteam/jpgraph": "^10.3",
|
||||
@@ -1075,7 +1070,7 @@
|
||||
"mpdf/mpdf": "Option for rendering PDF with PDF Writer",
|
||||
"tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer"
|
||||
},
|
||||
"time": "2025-10-26T16:01:04+00:00",
|
||||
"time": "2026-07-12T19:59:31+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@@ -1105,6 +1100,9 @@
|
||||
},
|
||||
{
|
||||
"name": "Adrien Crivelli"
|
||||
},
|
||||
{
|
||||
"name": "Owen Leibman"
|
||||
}
|
||||
],
|
||||
"description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
|
||||
@@ -1121,7 +1119,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues",
|
||||
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.30.1"
|
||||
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.30.6"
|
||||
},
|
||||
"install-path": "../phpoffice/phpspreadsheet"
|
||||
},
|
||||
@@ -1461,26 +1459,26 @@
|
||||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "9.6.31",
|
||||
"version_normalized": "9.6.31.0",
|
||||
"version": "9.6.36",
|
||||
"version_normalized": "9.6.36.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "945d0b7f346a084ce5549e95289962972c4272e5"
|
||||
"reference": "abab27ed286d3e1246fbbfe6b56bfd732d945ec9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/945d0b7f346a084ce5549e95289962972c4272e5",
|
||||
"reference": "945d0b7f346a084ce5549e95289962972c4272e5",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/abab27ed286d3e1246fbbfe6b56bfd732d945ec9",
|
||||
"reference": "abab27ed286d3e1246fbbfe6b56bfd732d945ec9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/instantiator": "^1.5.0 || ^2",
|
||||
"ext-dom": "*",
|
||||
"ext-filter": "*",
|
||||
"ext-json": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-xml": "*",
|
||||
"ext-xmlwriter": "*",
|
||||
"myclabs/deep-copy": "^1.13.4",
|
||||
"phar-io/manifest": "^2.0.4",
|
||||
@@ -1493,10 +1491,10 @@
|
||||
"phpunit/php-timer": "^5.0.3",
|
||||
"sebastian/cli-parser": "^1.0.2",
|
||||
"sebastian/code-unit": "^1.0.8",
|
||||
"sebastian/comparator": "^4.0.9",
|
||||
"sebastian/comparator": "^4.0.10",
|
||||
"sebastian/diff": "^4.0.6",
|
||||
"sebastian/environment": "^5.1.5",
|
||||
"sebastian/exporter": "^4.0.8",
|
||||
"sebastian/exporter": "^4.0.9",
|
||||
"sebastian/global-state": "^5.0.8",
|
||||
"sebastian/object-enumerator": "^4.0.4",
|
||||
"sebastian/resource-operations": "^3.0.4",
|
||||
@@ -1507,7 +1505,7 @@
|
||||
"ext-soap": "To be able to generate mocks based on WSDL files",
|
||||
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||
},
|
||||
"time": "2025-12-06T07:45:52+00:00",
|
||||
"time": "2026-08-11T06:25:15+00:00",
|
||||
"bin": [
|
||||
"phpunit"
|
||||
],
|
||||
@@ -1547,145 +1545,16 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.31"
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.36"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://phpunit.de/sponsors.html",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/sebastianbergmann",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://liberapay.com/sebastianbergmann",
|
||||
"type": "liberapay"
|
||||
},
|
||||
{
|
||||
"url": "https://thanks.dev/u/gh/sebastianbergmann",
|
||||
"type": "thanks_dev"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
|
||||
"type": "tidelift"
|
||||
"url": "https://phpunit.de/sponsoring.html",
|
||||
"type": "other"
|
||||
}
|
||||
],
|
||||
"install-path": "../phpunit/phpunit"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-client",
|
||||
"version": "1.0.3",
|
||||
"version_normalized": "1.0.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-client.git",
|
||||
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
|
||||
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"time": "2023-09-23T14:17:50+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Client\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP clients",
|
||||
"homepage": "https://github.com/php-fig/http-client",
|
||||
"keywords": [
|
||||
"http",
|
||||
"http-client",
|
||||
"psr",
|
||||
"psr-18"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-client"
|
||||
},
|
||||
"install-path": "../psr/http-client"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-factory",
|
||||
"version": "1.1.0",
|
||||
"version_normalized": "1.1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-factory.git",
|
||||
"reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
|
||||
"reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"time": "2024-04-15T12:06:14+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
|
||||
"keywords": [
|
||||
"factory",
|
||||
"http",
|
||||
"message",
|
||||
"psr",
|
||||
"psr-17",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-factory"
|
||||
},
|
||||
"install-path": "../psr/http-factory"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
"version": "1.1",
|
||||
@@ -1798,39 +1667,53 @@
|
||||
},
|
||||
{
|
||||
"name": "sabberworm/php-css-parser",
|
||||
"version": "v8.9.0",
|
||||
"version_normalized": "8.9.0.0",
|
||||
"version": "v9.4.0",
|
||||
"version_normalized": "9.4.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/MyIntervals/PHP-CSS-Parser.git",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9"
|
||||
"reference": "fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9",
|
||||
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f",
|
||||
"reference": "fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-iconv": "*",
|
||||
"php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
|
||||
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
|
||||
"thecodingmachine/safe": "^1.3 || ^2.5 || ^3.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41",
|
||||
"rawr/cross-data-providers": "^2.0.0"
|
||||
"php-parallel-lint/php-parallel-lint": "1.4.0",
|
||||
"phpstan/extension-installer": "1.4.3",
|
||||
"phpstan/phpstan": "1.12.33 || 2.2.2",
|
||||
"phpstan/phpstan-phpunit": "1.4.2 || 2.0.16",
|
||||
"phpstan/phpstan-strict-rules": "1.6.2 || 2.0.11",
|
||||
"phpunit/phpunit": "8.5.52",
|
||||
"rawr/phpunit-data-provider": "3.3.1",
|
||||
"rector/rector": "1.2.10 || 2.4.6",
|
||||
"rector/type-perfect": "1.0.0 || 2.1.3",
|
||||
"squizlabs/php_codesniffer": "4.0.1",
|
||||
"thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.3"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "for parsing UTF-8 CSS"
|
||||
},
|
||||
"time": "2025-07-11T13:20:48+00:00",
|
||||
"time": "2026-06-18T15:10:53+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "9.0.x-dev"
|
||||
"dev-main": "9.5.x-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/Rule/Rule.php",
|
||||
"src/RuleSet/RuleContainer.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Sabberworm\\CSS\\": "src/"
|
||||
}
|
||||
@@ -1861,7 +1744,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues",
|
||||
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0"
|
||||
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v9.4.0"
|
||||
},
|
||||
"install-path": "../sabberworm/php-css-parser"
|
||||
},
|
||||
@@ -2043,17 +1926,17 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/comparator",
|
||||
"version": "4.0.9",
|
||||
"version_normalized": "4.0.9.0",
|
||||
"version": "4.0.10",
|
||||
"version_normalized": "4.0.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/comparator.git",
|
||||
"reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5"
|
||||
"reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
|
||||
"reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e4df00b9b3571187db2831ae9aada2c6efbd715d",
|
||||
"reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2064,7 +1947,7 @@
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.3"
|
||||
},
|
||||
"time": "2025-08-10T06:51:50+00:00",
|
||||
"time": "2026-01-24T09:22:56+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@@ -2108,7 +1991,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/comparator/issues",
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9"
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/4.0.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2327,17 +2210,17 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/exporter",
|
||||
"version": "4.0.8",
|
||||
"version_normalized": "4.0.8.0",
|
||||
"version": "4.0.9",
|
||||
"version_normalized": "4.0.9.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/exporter.git",
|
||||
"reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c"
|
||||
"reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/14c6ba52f95a36c3d27c835d65efc7123c446e8c",
|
||||
"reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/4352c1a3df741a7ba9e61af6fed51d1fee41cbf7",
|
||||
"reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2348,7 +2231,7 @@
|
||||
"ext-mbstring": "*",
|
||||
"phpunit/phpunit": "^9.3"
|
||||
},
|
||||
"time": "2025-09-24T06:03:27+00:00",
|
||||
"time": "2026-08-11T04:55:59+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@@ -2395,7 +2278,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.8"
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.9"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2676,17 +2559,17 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/recursion-context",
|
||||
"version": "4.0.6",
|
||||
"version_normalized": "4.0.6.0",
|
||||
"version": "4.0.7",
|
||||
"version_normalized": "4.0.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/recursion-context.git",
|
||||
"reference": "539c6691e0623af6dc6f9c20384c120f963465a0"
|
||||
"reference": "c85be6922b7fd365942b986b9a50397d65407611"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0",
|
||||
"reference": "539c6691e0623af6dc6f9c20384c120f963465a0",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/c85be6922b7fd365942b986b9a50397d65407611",
|
||||
"reference": "c85be6922b7fd365942b986b9a50397d65407611",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2695,7 +2578,7 @@
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.3"
|
||||
},
|
||||
"time": "2025-08-10T06:57:39+00:00",
|
||||
"time": "2026-08-11T05:25:24+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@@ -2730,7 +2613,7 @@
|
||||
"homepage": "https://github.com/sebastianbergmann/recursion-context",
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/recursion-context/issues",
|
||||
"source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6"
|
||||
"source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -2926,17 +2809,17 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.33.0",
|
||||
"version_normalized": "1.33.0.0",
|
||||
"version": "v1.38.2",
|
||||
"version_normalized": "1.38.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493"
|
||||
"reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493",
|
||||
"reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6",
|
||||
"reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2949,7 +2832,7 @@
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"time": "2024-12-23T08:48:59+00:00",
|
||||
"time": "2026-05-27T06:59:30+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"thanks": {
|
||||
@@ -2990,7 +2873,7 @@
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0"
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3012,6 +2895,148 @@
|
||||
],
|
||||
"install-path": "../symfony/polyfill-mbstring"
|
||||
},
|
||||
{
|
||||
"name": "thecodingmachine/safe",
|
||||
"version": "v1.3.3",
|
||||
"version_normalized": "1.3.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thecodingmachine/safe.git",
|
||||
"reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thecodingmachine/safe/zipball/a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
|
||||
"reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"squizlabs/php_codesniffer": "^3.2",
|
||||
"thecodingmachine/phpstan-strict-rules": "^0.12"
|
||||
},
|
||||
"time": "2020-10-28T17:51:34+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "0.1-dev"
|
||||
}
|
||||
},
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"deprecated/apc.php",
|
||||
"deprecated/libevent.php",
|
||||
"deprecated/mssql.php",
|
||||
"deprecated/stats.php",
|
||||
"lib/special_cases.php",
|
||||
"generated/apache.php",
|
||||
"generated/apcu.php",
|
||||
"generated/array.php",
|
||||
"generated/bzip2.php",
|
||||
"generated/calendar.php",
|
||||
"generated/classobj.php",
|
||||
"generated/com.php",
|
||||
"generated/cubrid.php",
|
||||
"generated/curl.php",
|
||||
"generated/datetime.php",
|
||||
"generated/dir.php",
|
||||
"generated/eio.php",
|
||||
"generated/errorfunc.php",
|
||||
"generated/exec.php",
|
||||
"generated/fileinfo.php",
|
||||
"generated/filesystem.php",
|
||||
"generated/filter.php",
|
||||
"generated/fpm.php",
|
||||
"generated/ftp.php",
|
||||
"generated/funchand.php",
|
||||
"generated/gmp.php",
|
||||
"generated/gnupg.php",
|
||||
"generated/hash.php",
|
||||
"generated/ibase.php",
|
||||
"generated/ibmDb2.php",
|
||||
"generated/iconv.php",
|
||||
"generated/image.php",
|
||||
"generated/imap.php",
|
||||
"generated/info.php",
|
||||
"generated/ingres-ii.php",
|
||||
"generated/inotify.php",
|
||||
"generated/json.php",
|
||||
"generated/ldap.php",
|
||||
"generated/libxml.php",
|
||||
"generated/lzf.php",
|
||||
"generated/mailparse.php",
|
||||
"generated/mbstring.php",
|
||||
"generated/misc.php",
|
||||
"generated/msql.php",
|
||||
"generated/mysql.php",
|
||||
"generated/mysqli.php",
|
||||
"generated/mysqlndMs.php",
|
||||
"generated/mysqlndQc.php",
|
||||
"generated/network.php",
|
||||
"generated/oci8.php",
|
||||
"generated/opcache.php",
|
||||
"generated/openssl.php",
|
||||
"generated/outcontrol.php",
|
||||
"generated/password.php",
|
||||
"generated/pcntl.php",
|
||||
"generated/pcre.php",
|
||||
"generated/pdf.php",
|
||||
"generated/pgsql.php",
|
||||
"generated/posix.php",
|
||||
"generated/ps.php",
|
||||
"generated/pspell.php",
|
||||
"generated/readline.php",
|
||||
"generated/rpminfo.php",
|
||||
"generated/rrd.php",
|
||||
"generated/sem.php",
|
||||
"generated/session.php",
|
||||
"generated/shmop.php",
|
||||
"generated/simplexml.php",
|
||||
"generated/sockets.php",
|
||||
"generated/sodium.php",
|
||||
"generated/solr.php",
|
||||
"generated/spl.php",
|
||||
"generated/sqlsrv.php",
|
||||
"generated/ssdeep.php",
|
||||
"generated/ssh2.php",
|
||||
"generated/stream.php",
|
||||
"generated/strings.php",
|
||||
"generated/swoole.php",
|
||||
"generated/uodbc.php",
|
||||
"generated/uopz.php",
|
||||
"generated/url.php",
|
||||
"generated/var.php",
|
||||
"generated/xdiff.php",
|
||||
"generated/xml.php",
|
||||
"generated/xmlrpc.php",
|
||||
"generated/yaml.php",
|
||||
"generated/yaz.php",
|
||||
"generated/zip.php",
|
||||
"generated/zlib.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Safe\\": [
|
||||
"lib/",
|
||||
"deprecated/",
|
||||
"generated/"
|
||||
]
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHP core functions that throw exceptions instead of returning FALSE on error",
|
||||
"support": {
|
||||
"issues": "https://github.com/thecodingmachine/safe/issues",
|
||||
"source": "https://github.com/thecodingmachine/safe/tree/v1.3.3"
|
||||
},
|
||||
"install-path": "../thecodingmachine/safe"
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.3.1",
|
||||
|
||||
Vendored
+54
-63
@@ -1,9 +1,9 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'name' => 'codeigniter/framework',
|
||||
'pretty_version' => '1.0.0+no-version-set',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => null,
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'reference' => 'd42483b35093b85e9f7b3ff81b5d9627c2cba32b',
|
||||
'type' => 'project',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
@@ -11,18 +11,18 @@
|
||||
),
|
||||
'versions' => array(
|
||||
'codeigniter/framework' => array(
|
||||
'pretty_version' => '1.0.0+no-version-set',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => null,
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'reference' => 'd42483b35093b85e9f7b3ff81b5d9627c2cba32b',
|
||||
'type' => 'project',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'composer/pcre' => array(
|
||||
'pretty_version' => '3.3.2',
|
||||
'version' => '3.3.2.0',
|
||||
'reference' => 'b2bed4734f0cc156ee1fe9c0da2550420d99a21e',
|
||||
'pretty_version' => '3.4.0',
|
||||
'version' => '3.4.0.0',
|
||||
'reference' => 'd5a341b3fb61f3001970940afb1d332968a183ed',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/./pcre',
|
||||
'aliases' => array(),
|
||||
@@ -38,27 +38,27 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'dompdf/dompdf' => array(
|
||||
'pretty_version' => 'v3.1.4',
|
||||
'version' => '3.1.4.0',
|
||||
'reference' => 'db712c90c5b9868df3600e64e68da62e78a34623',
|
||||
'pretty_version' => 'v3.1.6',
|
||||
'version' => '3.1.6.0',
|
||||
'reference' => '6d4b4eb8500f7a786da8868ba463a71b725a4005',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/dompdf',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'dompdf/php-font-lib' => array(
|
||||
'pretty_version' => '1.0.1',
|
||||
'version' => '1.0.1.0',
|
||||
'reference' => '6137b7d4232b7f16c882c75e4ca3991dbcf6fe2d',
|
||||
'pretty_version' => '1.0.2',
|
||||
'version' => '1.0.2.0',
|
||||
'reference' => 'a6e9a688a2a80016ac080b97be73d3e10c444c9a',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/php-font-lib',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'dompdf/php-svg-lib' => array(
|
||||
'pretty_version' => '1.0.0',
|
||||
'version' => '1.0.0.0',
|
||||
'reference' => 'eb045e518185298eb6ff8d80d0d0c6b17aecd9af',
|
||||
'pretty_version' => '1.0.2',
|
||||
'version' => '1.0.2.0',
|
||||
'reference' => '8259ffb930817e72b1ff1caef5d226501f3dfeb1',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../dompdf/php-svg-lib',
|
||||
'aliases' => array(),
|
||||
@@ -101,9 +101,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'masterminds/html5' => array(
|
||||
'pretty_version' => '2.10.0',
|
||||
'version' => '2.10.0.0',
|
||||
'reference' => 'fcf91eb64359852f00d921887b219479b4f21251',
|
||||
'pretty_version' => '2.11.0',
|
||||
'version' => '2.11.0.0',
|
||||
'reference' => 'a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../masterminds/html5',
|
||||
'aliases' => array(),
|
||||
@@ -137,9 +137,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'nikic/php-parser' => array(
|
||||
'pretty_version' => 'v5.7.0',
|
||||
'version' => '5.7.0.0',
|
||||
'reference' => 'dca41cd15c2ac9d055ad70dbfd011130757d1f82',
|
||||
'pretty_version' => 'v5.8.0',
|
||||
'version' => '5.8.0.0',
|
||||
'reference' => '044a6a392ff8ad0d61f14370a5fbbd0a0107152f',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../nikic/php-parser',
|
||||
'aliases' => array(),
|
||||
@@ -164,9 +164,9 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpoffice/phpspreadsheet' => array(
|
||||
'pretty_version' => '1.30.1',
|
||||
'version' => '1.30.1.0',
|
||||
'reference' => 'fa8257a579ec623473eabfe49731de5967306c4c',
|
||||
'pretty_version' => '1.30.6',
|
||||
'version' => '1.30.6.0',
|
||||
'reference' => 'a416375ffc8bf5b661c1bb4e6c60d8f3fddbe5ce',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpoffice/phpspreadsheet',
|
||||
'aliases' => array(),
|
||||
@@ -218,32 +218,14 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'phpunit/phpunit' => array(
|
||||
'pretty_version' => '9.6.31',
|
||||
'version' => '9.6.31.0',
|
||||
'reference' => '945d0b7f346a084ce5549e95289962972c4272e5',
|
||||
'pretty_version' => '9.6.36',
|
||||
'version' => '9.6.36.0',
|
||||
'reference' => 'abab27ed286d3e1246fbbfe6b56bfd732d945ec9',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../phpunit/phpunit',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'psr/http-client' => array(
|
||||
'pretty_version' => '1.0.3',
|
||||
'version' => '1.0.3.0',
|
||||
'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/http-client',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-factory' => array(
|
||||
'pretty_version' => '1.1.0',
|
||||
'version' => '1.1.0.0',
|
||||
'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../psr/http-factory',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'psr/http-message' => array(
|
||||
'pretty_version' => '1.1',
|
||||
'version' => '1.1.0.0',
|
||||
@@ -263,9 +245,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'sabberworm/php-css-parser' => array(
|
||||
'pretty_version' => 'v8.9.0',
|
||||
'version' => '8.9.0.0',
|
||||
'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9',
|
||||
'pretty_version' => 'v9.4.0',
|
||||
'version' => '9.4.0.0',
|
||||
'reference' => 'fd3bf9fb173e0df649bc4e3e0d088a1b2417c08f',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sabberworm/php-css-parser',
|
||||
'aliases' => array(),
|
||||
@@ -299,9 +281,9 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/comparator' => array(
|
||||
'pretty_version' => '4.0.9',
|
||||
'version' => '4.0.9.0',
|
||||
'reference' => '67a2df3a62639eab2cc5906065e9805d4fd5dfc5',
|
||||
'pretty_version' => '4.0.10',
|
||||
'version' => '4.0.10.0',
|
||||
'reference' => 'e4df00b9b3571187db2831ae9aada2c6efbd715d',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/comparator',
|
||||
'aliases' => array(),
|
||||
@@ -335,9 +317,9 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/exporter' => array(
|
||||
'pretty_version' => '4.0.8',
|
||||
'version' => '4.0.8.0',
|
||||
'reference' => '14c6ba52f95a36c3d27c835d65efc7123c446e8c',
|
||||
'pretty_version' => '4.0.9',
|
||||
'version' => '4.0.9.0',
|
||||
'reference' => '4352c1a3df741a7ba9e61af6fed51d1fee41cbf7',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/exporter',
|
||||
'aliases' => array(),
|
||||
@@ -380,9 +362,9 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'sebastian/recursion-context' => array(
|
||||
'pretty_version' => '4.0.6',
|
||||
'version' => '4.0.6.0',
|
||||
'reference' => '539c6691e0623af6dc6f9c20384c120f963465a0',
|
||||
'pretty_version' => '4.0.7',
|
||||
'version' => '4.0.7.0',
|
||||
'reference' => 'c85be6922b7fd365942b986b9a50397d65407611',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../sebastian/recursion-context',
|
||||
'aliases' => array(),
|
||||
@@ -416,14 +398,23 @@
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'symfony/polyfill-mbstring' => array(
|
||||
'pretty_version' => 'v1.33.0',
|
||||
'version' => '1.33.0.0',
|
||||
'reference' => '6d857f4d76bd4b343eac26d6b539585d2bc56493',
|
||||
'pretty_version' => 'v1.38.2',
|
||||
'version' => '1.38.2.0',
|
||||
'reference' => 'd3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'thecodingmachine/safe' => array(
|
||||
'pretty_version' => 'v1.3.3',
|
||||
'version' => '1.3.3.0',
|
||||
'reference' => 'a8ab0876305a4cdaef31b2350fcb9811b5608dbc',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../thecodingmachine/safe',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'theseer/tokenizer' => array(
|
||||
'pretty_version' => '1.3.1',
|
||||
'version' => '1.3.1.0',
|
||||
|
||||
Vendored
+9
-5
@@ -20,12 +20,13 @@
|
||||
"php": "^7.4 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8 || ^9",
|
||||
"phpstan/phpstan": "^1.12 || ^2",
|
||||
"phpstan/phpstan-strict-rules": "^1 || ^2"
|
||||
"phpunit/phpunit": "^9",
|
||||
"phpstan/phpstan": "^2",
|
||||
"phpstan/phpstan-strict-rules": "^2",
|
||||
"phpstan/phpstan-deprecation-rules": "^2"
|
||||
},
|
||||
"conflict": {
|
||||
"phpstan/phpstan": "<1.11.10"
|
||||
"phpstan/phpstan": "<2.2.2"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -48,7 +49,10 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "@php vendor/bin/phpunit",
|
||||
"test": [
|
||||
"@php vendor/bin/phpunit",
|
||||
"@php vendor/bin/phpunit --testsuite phpstan"
|
||||
],
|
||||
"phpstan": "@php phpstan analyse"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,18 +57,38 @@ final class PregMatchTypeSpecifyingExtension implements StaticMethodTypeSpecifyi
|
||||
{
|
||||
$args = $node->getArgs();
|
||||
$patternArg = $args[0] ?? null;
|
||||
$subjectArg = $args[1] ?? null;
|
||||
$matchesArg = $args[2] ?? null;
|
||||
$flagsArg = $args[3] ?? null;
|
||||
|
||||
$subjectTypes = new SpecifiedTypes();
|
||||
if ($patternArg === null) {
|
||||
return $subjectTypes;
|
||||
}
|
||||
|
||||
if (
|
||||
$patternArg === null || $matchesArg === null
|
||||
$subjectArg !== null
|
||||
&& $context->true()
|
||||
&& $scope->getType($subjectArg->value)->isString()->yes()
|
||||
) {
|
||||
return new SpecifiedTypes();
|
||||
$subjectType = $this->regexShapeMatcher->matchSubjectExpr($patternArg->value, $scope);
|
||||
if ($subjectType !== null) {
|
||||
$subjectTypes = $this->typeSpecifier->create(
|
||||
$subjectArg->value,
|
||||
$subjectType,
|
||||
$context,
|
||||
$scope,
|
||||
)->setRootExpr($node);
|
||||
}
|
||||
}
|
||||
|
||||
if ($matchesArg === null) {
|
||||
return $subjectTypes;
|
||||
}
|
||||
|
||||
$flagsType = PregMatchFlags::getType($flagsArg, $scope);
|
||||
if ($flagsType === null) {
|
||||
return new SpecifiedTypes();
|
||||
return $subjectTypes;
|
||||
}
|
||||
|
||||
if (stripos($methodReflection->getName(), 'matchAll') !== false) {
|
||||
@@ -78,7 +98,7 @@ final class PregMatchTypeSpecifyingExtension implements StaticMethodTypeSpecifyi
|
||||
}
|
||||
|
||||
if ($matchedType === null) {
|
||||
return new SpecifiedTypes();
|
||||
return $subjectTypes;
|
||||
}
|
||||
|
||||
if (
|
||||
@@ -93,27 +113,13 @@ final class PregMatchTypeSpecifyingExtension implements StaticMethodTypeSpecifyi
|
||||
$context = $context->negate();
|
||||
}
|
||||
|
||||
// @phpstan-ignore function.alreadyNarrowedType
|
||||
if (method_exists('PHPStan\Analyser\SpecifiedTypes', 'setRootExpr')) {
|
||||
$typeSpecifier = $this->typeSpecifier->create(
|
||||
$matchesArg->value,
|
||||
$matchedType,
|
||||
$context,
|
||||
$scope
|
||||
)->setRootExpr($node);
|
||||
|
||||
return $overwrite ? $typeSpecifier->setAlwaysOverwriteTypes() : $typeSpecifier;
|
||||
}
|
||||
|
||||
// @phpstan-ignore arguments.count
|
||||
return $this->typeSpecifier->create(
|
||||
$specifiedTypes = $this->typeSpecifier->create(
|
||||
$matchesArg->value,
|
||||
$matchedType,
|
||||
$context,
|
||||
// @phpstan-ignore argument.type
|
||||
$overwrite,
|
||||
$scope,
|
||||
$node
|
||||
);
|
||||
$scope
|
||||
)->setRootExpr($node);
|
||||
|
||||
return $subjectTypes->unionWith($overwrite ? $specifiedTypes->setAlwaysOverwriteTypes() : $specifiedTypes);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -395,7 +395,7 @@ class Preg
|
||||
* @return array<int|string, string>
|
||||
* @throws UnexpectedNullMatchException
|
||||
*/
|
||||
private static function enforceNonNullMatches(string $pattern, array $matches, string $variantMethod)
|
||||
private static function enforceNonNullMatches(string $pattern, array $matches, string $variantMethod): array
|
||||
{
|
||||
foreach ($matches as $group => $match) {
|
||||
if (is_string($match) || (is_array($match) && is_string($match[0]))) {
|
||||
@@ -414,7 +414,7 @@ class Preg
|
||||
* @return array<int|string, list<string>>
|
||||
* @throws UnexpectedNullMatchException
|
||||
*/
|
||||
private static function enforceNonNullMatchAll(string $pattern, array $matches, string $variantMethod)
|
||||
private static function enforceNonNullMatchAll(string $pattern, array $matches, string $variantMethod): array
|
||||
{
|
||||
foreach ($matches as $group => $groupMatches) {
|
||||
foreach ($groupMatches as $match) {
|
||||
|
||||
Vendored
+6
-22
@@ -17,19 +17,7 @@ HTML attributes.
|
||||
|
||||
*This document applies to the latest stable code which may not reflect the current
|
||||
release. For released code please
|
||||
[navigate to the appropriate tag](https://github.com/dompdf/dompdf/tags).*
|
||||
|
||||
----
|
||||
|
||||
**Check out the [demo](http://eclecticgeek.com/dompdf/debug.php) and ask any
|
||||
question on [StackOverflow](https://stackoverflow.com/questions/tagged/dompdf) or
|
||||
in [Discussions](https://github.com/dompdf/dompdf/discussions).**
|
||||
|
||||
Follow us on [](http://www.twitter.com/dompdf).
|
||||
|
||||
---
|
||||
|
||||
|
||||
[navigate to the appropriate tag](https://github.com/dompdf/dompdf/releases).*
|
||||
|
||||
## Features
|
||||
|
||||
@@ -52,15 +40,10 @@ Follow us on [](
|
||||
* MBString extension
|
||||
* php-font-lib
|
||||
* php-svg-lib
|
||||
|
||||
Note that some required dependencies may have further dependencies
|
||||
(notably php-svg-lib requires sabberworm/php-css-parser).
|
||||
|
||||
### Recommendations
|
||||
|
||||
* GD (for image processing)
|
||||
* Additionally, the IMagick or GMagick extension improves image processing performance for certain image types
|
||||
* OPcache (OPcache, XCache, APC, etc.): improves performance
|
||||
|
||||
Note that some required dependencies may have further dependencies.
|
||||
|
||||
Visit the wiki for more information:
|
||||
https://github.com/dompdf/dompdf/wiki/Requirements
|
||||
@@ -121,8 +104,9 @@ require_once 'dompdf/autoload.inc.php';
|
||||
|
||||
Note: packaged releases are named according using semantic
|
||||
versioning (_dompdf_MAJOR-MINOR-PATCH.zip_). So the 1.0.0
|
||||
release would be dompdf_1-0-0.zip. This is the only download
|
||||
that includes the autoloader for Dompdf and all its dependencies.
|
||||
release would be dompdf_1-0-0.zip. Packaged releases include
|
||||
the dependency releases available at the time of release
|
||||
and are not necessarily updated to include updated dependencies.
|
||||
|
||||
### Install with git
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
3.1.4
|
||||
3.1.6
|
||||
|
||||
Vendored
+27
-8
@@ -1185,10 +1185,10 @@ class Cpdf
|
||||
}
|
||||
|
||||
// also need to adjust the widths for the differences array
|
||||
if (isset($object['differences'])) {
|
||||
foreach ($object['differences'] as $charNum => $charName) {
|
||||
if (isset($object_info['differences'])) {
|
||||
foreach ($object_info['differences'] as $charNum => $charName) {
|
||||
if ($charNum > $lastChar) {
|
||||
if (!$object['isUnicode']) {
|
||||
if (!$object_info['isUnicode']) {
|
||||
// With Unicode, widths array isn't used
|
||||
for ($i = $lastChar + 1; $i <= $charNum; $i++) {
|
||||
$widths[] = 0;
|
||||
@@ -3758,7 +3758,7 @@ EOT;
|
||||
|
||||
$c = (int)$dtmp['U'];
|
||||
$n = $dtmp['N'];
|
||||
$glyph = $dtmp['G'];
|
||||
$glyph = (int)$dtmp['G'];
|
||||
$width = floatval($dtmp['WX']);
|
||||
|
||||
if ($c >= 0) {
|
||||
@@ -3810,7 +3810,7 @@ EOT;
|
||||
}
|
||||
|
||||
if (!isset($this->fonts[$font])) {
|
||||
$this->addMessage("openFont: no font file found for $font. Do you need to run load_font.php?");
|
||||
$this->addMessage("openFont: no font file found for $font.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4831,6 +4831,25 @@ EOT;
|
||||
$this->addContent("W n");
|
||||
}
|
||||
|
||||
/**
|
||||
* saves the graphics state prior to manually drawing shapes to be used for clipping
|
||||
*
|
||||
* after drawing a shape use the clip() function to use the shape for clipping,
|
||||
* and then use clippingEnd() to end the clipping region and restore the graphics state
|
||||
*/
|
||||
function clippingStart()
|
||||
{
|
||||
$this->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* uses the previously drawn path for clipping, all the elements added after this will be clipped
|
||||
*/
|
||||
function clip()
|
||||
{
|
||||
$this->addContent("\nW n");
|
||||
}
|
||||
|
||||
/**
|
||||
* ends the last clipping shape
|
||||
*/
|
||||
@@ -6294,6 +6313,9 @@ EOT;
|
||||
function addSvgFromFile($file, $x, $y, $w = 0, $h = 0)
|
||||
{
|
||||
$doc = new \Svg\Document();
|
||||
if (property_exists($doc, 'allowExternalReferences')) {
|
||||
$doc->allowExternalReferences = true;
|
||||
}
|
||||
$doc->loadFile($file);
|
||||
$dimensions = $doc->getDimensions();
|
||||
|
||||
@@ -6375,7 +6397,6 @@ EOT;
|
||||
$info['filterMethod'] = ord($data[$p + 19]);
|
||||
$info['interlaceMethod'] = ord($data[$p + 20]);
|
||||
|
||||
//print_r($info);
|
||||
$haveHeader = 1;
|
||||
if ($info['compressionMethod'] != 0) {
|
||||
$error = 1;
|
||||
@@ -6549,14 +6570,12 @@ EOT;
|
||||
return;
|
||||
}
|
||||
|
||||
//print_r($info);
|
||||
// so this image is ok... add it in.
|
||||
$this->numImages++;
|
||||
$im = $this->numImages;
|
||||
$label = "I$im";
|
||||
$this->numObj++;
|
||||
|
||||
// $this->o_image($this->numObj,'new',array('label' => $label,'data' => $idata,'iw' => $w,'ih' => $h,'type' => 'png','ic' => $info['width']));
|
||||
$options = [
|
||||
'label' => $label,
|
||||
'data' => $idata,
|
||||
|
||||
+10762
File diff suppressed because one or more lines are too long
+10770
File diff suppressed because one or more lines are too long
-569
@@ -1,569 +0,0 @@
|
||||
{
|
||||
"codeToName": {
|
||||
"32": "space",
|
||||
"160": "space",
|
||||
"33": "exclam",
|
||||
"34": "quotedbl",
|
||||
"35": "numbersign",
|
||||
"36": "dollar",
|
||||
"37": "percent",
|
||||
"38": "ampersand",
|
||||
"146": "quoteright",
|
||||
"40": "parenleft",
|
||||
"41": "parenright",
|
||||
"42": "asterisk",
|
||||
"43": "plus",
|
||||
"44": "comma",
|
||||
"45": "hyphen",
|
||||
"173": "hyphen",
|
||||
"46": "period",
|
||||
"47": "slash",
|
||||
"48": "zero",
|
||||
"49": "one",
|
||||
"50": "two",
|
||||
"51": "three",
|
||||
"52": "four",
|
||||
"53": "five",
|
||||
"54": "six",
|
||||
"55": "seven",
|
||||
"56": "eight",
|
||||
"57": "nine",
|
||||
"58": "colon",
|
||||
"59": "semicolon",
|
||||
"60": "less",
|
||||
"61": "equal",
|
||||
"62": "greater",
|
||||
"63": "question",
|
||||
"64": "at",
|
||||
"65": "A",
|
||||
"66": "B",
|
||||
"67": "C",
|
||||
"68": "D",
|
||||
"69": "E",
|
||||
"70": "F",
|
||||
"71": "G",
|
||||
"72": "H",
|
||||
"73": "I",
|
||||
"74": "J",
|
||||
"75": "K",
|
||||
"76": "L",
|
||||
"77": "M",
|
||||
"78": "N",
|
||||
"79": "O",
|
||||
"80": "P",
|
||||
"81": "Q",
|
||||
"82": "R",
|
||||
"83": "S",
|
||||
"84": "T",
|
||||
"85": "U",
|
||||
"86": "V",
|
||||
"87": "W",
|
||||
"88": "X",
|
||||
"89": "Y",
|
||||
"90": "Z",
|
||||
"91": "bracketleft",
|
||||
"92": "backslash",
|
||||
"93": "bracketright",
|
||||
"94": "asciicircum",
|
||||
"95": "underscore",
|
||||
"145": "quoteleft",
|
||||
"97": "a",
|
||||
"98": "b",
|
||||
"99": "c",
|
||||
"100": "d",
|
||||
"101": "e",
|
||||
"102": "f",
|
||||
"103": "g",
|
||||
"104": "h",
|
||||
"105": "i",
|
||||
"106": "j",
|
||||
"107": "k",
|
||||
"108": "l",
|
||||
"109": "m",
|
||||
"110": "n",
|
||||
"111": "o",
|
||||
"112": "p",
|
||||
"113": "q",
|
||||
"114": "r",
|
||||
"115": "s",
|
||||
"116": "t",
|
||||
"117": "u",
|
||||
"118": "v",
|
||||
"119": "w",
|
||||
"120": "x",
|
||||
"121": "y",
|
||||
"122": "z",
|
||||
"123": "braceleft",
|
||||
"124": "bar",
|
||||
"125": "braceright",
|
||||
"126": "asciitilde",
|
||||
"161": "exclamdown",
|
||||
"162": "cent",
|
||||
"163": "sterling",
|
||||
"165": "yen",
|
||||
"131": "florin",
|
||||
"167": "section",
|
||||
"164": "currency",
|
||||
"39": "quotesingle",
|
||||
"147": "quotedblleft",
|
||||
"171": "guillemotleft",
|
||||
"139": "guilsinglleft",
|
||||
"155": "guilsinglright",
|
||||
"150": "endash",
|
||||
"134": "dagger",
|
||||
"135": "daggerdbl",
|
||||
"183": "periodcentered",
|
||||
"182": "paragraph",
|
||||
"149": "bullet",
|
||||
"130": "quotesinglbase",
|
||||
"132": "quotedblbase",
|
||||
"148": "quotedblright",
|
||||
"187": "guillemotright",
|
||||
"133": "ellipsis",
|
||||
"137": "perthousand",
|
||||
"191": "questiondown",
|
||||
"96": "grave",
|
||||
"180": "acute",
|
||||
"136": "circumflex",
|
||||
"152": "tilde",
|
||||
"175": "macron",
|
||||
"168": "dieresis",
|
||||
"184": "cedilla",
|
||||
"151": "emdash",
|
||||
"198": "AE",
|
||||
"170": "ordfeminine",
|
||||
"216": "Oslash",
|
||||
"140": "OE",
|
||||
"186": "ordmasculine",
|
||||
"230": "ae",
|
||||
"248": "oslash",
|
||||
"156": "oe",
|
||||
"223": "germandbls",
|
||||
"207": "Idieresis",
|
||||
"233": "eacute",
|
||||
"159": "Ydieresis",
|
||||
"247": "divide",
|
||||
"221": "Yacute",
|
||||
"194": "Acircumflex",
|
||||
"225": "aacute",
|
||||
"219": "Ucircumflex",
|
||||
"253": "yacute",
|
||||
"234": "ecircumflex",
|
||||
"220": "Udieresis",
|
||||
"218": "Uacute",
|
||||
"203": "Edieresis",
|
||||
"169": "copyright",
|
||||
"229": "aring",
|
||||
"224": "agrave",
|
||||
"227": "atilde",
|
||||
"154": "scaron",
|
||||
"237": "iacute",
|
||||
"251": "ucircumflex",
|
||||
"226": "acircumflex",
|
||||
"231": "ccedilla",
|
||||
"222": "Thorn",
|
||||
"179": "threesuperior",
|
||||
"210": "Ograve",
|
||||
"192": "Agrave",
|
||||
"215": "multiply",
|
||||
"250": "uacute",
|
||||
"255": "ydieresis",
|
||||
"238": "icircumflex",
|
||||
"202": "Ecircumflex",
|
||||
"228": "adieresis",
|
||||
"235": "edieresis",
|
||||
"205": "Iacute",
|
||||
"177": "plusminus",
|
||||
"166": "brokenbar",
|
||||
"174": "registered",
|
||||
"200": "Egrave",
|
||||
"142": "Zcaron",
|
||||
"208": "Eth",
|
||||
"199": "Ccedilla",
|
||||
"193": "Aacute",
|
||||
"196": "Adieresis",
|
||||
"232": "egrave",
|
||||
"211": "Oacute",
|
||||
"243": "oacute",
|
||||
"239": "idieresis",
|
||||
"212": "Ocircumflex",
|
||||
"217": "Ugrave",
|
||||
"254": "thorn",
|
||||
"178": "twosuperior",
|
||||
"214": "Odieresis",
|
||||
"181": "mu",
|
||||
"236": "igrave",
|
||||
"190": "threequarters",
|
||||
"153": "trademark",
|
||||
"204": "Igrave",
|
||||
"189": "onehalf",
|
||||
"244": "ocircumflex",
|
||||
"241": "ntilde",
|
||||
"201": "Eacute",
|
||||
"188": "onequarter",
|
||||
"138": "Scaron",
|
||||
"176": "degree",
|
||||
"242": "ograve",
|
||||
"249": "ugrave",
|
||||
"209": "Ntilde",
|
||||
"245": "otilde",
|
||||
"195": "Atilde",
|
||||
"197": "Aring",
|
||||
"213": "Otilde",
|
||||
"206": "Icircumflex",
|
||||
"172": "logicalnot",
|
||||
"246": "odieresis",
|
||||
"252": "udieresis",
|
||||
"240": "eth",
|
||||
"158": "zcaron",
|
||||
"185": "onesuperior",
|
||||
"128": "Euro"
|
||||
},
|
||||
"isUnicode": false,
|
||||
"FontName": "Times-Bold",
|
||||
"FullName": "Times Bold",
|
||||
"FamilyName": "Times",
|
||||
"Weight": "Bold",
|
||||
"ItalicAngle": "0",
|
||||
"IsFixedPitch": "false",
|
||||
"CharacterSet": "ExtendedRoman",
|
||||
"FontBBox": [
|
||||
"-168",
|
||||
"-218",
|
||||
"1000",
|
||||
"935"
|
||||
],
|
||||
"UnderlinePosition": "-100",
|
||||
"UnderlineThickness": "50",
|
||||
"Version": "002.000",
|
||||
"EncodingScheme": "WinAnsiEncoding",
|
||||
"CapHeight": "676",
|
||||
"XHeight": "461",
|
||||
"Ascender": "683",
|
||||
"Descender": "-217",
|
||||
"StdHW": "44",
|
||||
"StdVW": "139",
|
||||
"StartCharMetrics": "317",
|
||||
"C": {
|
||||
"32": 250,
|
||||
"160": 250,
|
||||
"33": 333,
|
||||
"34": 555,
|
||||
"35": 500,
|
||||
"36": 500,
|
||||
"37": 1000,
|
||||
"38": 833,
|
||||
"146": 333,
|
||||
"40": 333,
|
||||
"41": 333,
|
||||
"42": 500,
|
||||
"43": 570,
|
||||
"44": 250,
|
||||
"45": 333,
|
||||
"173": 333,
|
||||
"46": 250,
|
||||
"47": 278,
|
||||
"48": 500,
|
||||
"49": 500,
|
||||
"50": 500,
|
||||
"51": 500,
|
||||
"52": 500,
|
||||
"53": 500,
|
||||
"54": 500,
|
||||
"55": 500,
|
||||
"56": 500,
|
||||
"57": 500,
|
||||
"58": 333,
|
||||
"59": 333,
|
||||
"60": 570,
|
||||
"61": 570,
|
||||
"62": 570,
|
||||
"63": 500,
|
||||
"64": 930,
|
||||
"65": 722,
|
||||
"66": 667,
|
||||
"67": 722,
|
||||
"68": 722,
|
||||
"69": 667,
|
||||
"70": 611,
|
||||
"71": 778,
|
||||
"72": 778,
|
||||
"73": 389,
|
||||
"74": 500,
|
||||
"75": 778,
|
||||
"76": 667,
|
||||
"77": 944,
|
||||
"78": 722,
|
||||
"79": 778,
|
||||
"80": 611,
|
||||
"81": 778,
|
||||
"82": 722,
|
||||
"83": 556,
|
||||
"84": 667,
|
||||
"85": 722,
|
||||
"86": 722,
|
||||
"87": 1000,
|
||||
"88": 722,
|
||||
"89": 722,
|
||||
"90": 667,
|
||||
"91": 333,
|
||||
"92": 278,
|
||||
"93": 333,
|
||||
"94": 581,
|
||||
"95": 500,
|
||||
"145": 333,
|
||||
"97": 500,
|
||||
"98": 556,
|
||||
"99": 444,
|
||||
"100": 556,
|
||||
"101": 444,
|
||||
"102": 333,
|
||||
"103": 500,
|
||||
"104": 556,
|
||||
"105": 278,
|
||||
"106": 333,
|
||||
"107": 556,
|
||||
"108": 278,
|
||||
"109": 833,
|
||||
"110": 556,
|
||||
"111": 500,
|
||||
"112": 556,
|
||||
"113": 556,
|
||||
"114": 444,
|
||||
"115": 389,
|
||||
"116": 333,
|
||||
"117": 556,
|
||||
"118": 500,
|
||||
"119": 722,
|
||||
"120": 500,
|
||||
"121": 500,
|
||||
"122": 444,
|
||||
"123": 394,
|
||||
"124": 220,
|
||||
"125": 394,
|
||||
"126": 520,
|
||||
"161": 333,
|
||||
"162": 500,
|
||||
"163": 500,
|
||||
"fraction": 167,
|
||||
"165": 500,
|
||||
"131": 500,
|
||||
"167": 500,
|
||||
"164": 500,
|
||||
"39": 278,
|
||||
"147": 500,
|
||||
"171": 500,
|
||||
"139": 333,
|
||||
"155": 333,
|
||||
"fi": 556,
|
||||
"fl": 556,
|
||||
"150": 500,
|
||||
"134": 500,
|
||||
"135": 500,
|
||||
"183": 250,
|
||||
"182": 540,
|
||||
"149": 350,
|
||||
"130": 333,
|
||||
"132": 500,
|
||||
"148": 500,
|
||||
"187": 500,
|
||||
"133": 1000,
|
||||
"137": 1000,
|
||||
"191": 500,
|
||||
"96": 333,
|
||||
"180": 333,
|
||||
"136": 333,
|
||||
"152": 333,
|
||||
"175": 333,
|
||||
"breve": 333,
|
||||
"dotaccent": 333,
|
||||
"168": 333,
|
||||
"ring": 333,
|
||||
"184": 333,
|
||||
"hungarumlaut": 333,
|
||||
"ogonek": 333,
|
||||
"caron": 333,
|
||||
"151": 1000,
|
||||
"198": 1000,
|
||||
"170": 300,
|
||||
"Lslash": 667,
|
||||
"216": 778,
|
||||
"140": 1000,
|
||||
"186": 330,
|
||||
"230": 722,
|
||||
"dotlessi": 278,
|
||||
"lslash": 278,
|
||||
"248": 500,
|
||||
"156": 722,
|
||||
"223": 556,
|
||||
"207": 389,
|
||||
"233": 444,
|
||||
"abreve": 500,
|
||||
"uhungarumlaut": 556,
|
||||
"ecaron": 444,
|
||||
"159": 722,
|
||||
"247": 570,
|
||||
"221": 722,
|
||||
"194": 722,
|
||||
"225": 500,
|
||||
"219": 722,
|
||||
"253": 500,
|
||||
"scommaaccent": 389,
|
||||
"234": 444,
|
||||
"Uring": 722,
|
||||
"220": 722,
|
||||
"aogonek": 500,
|
||||
"218": 722,
|
||||
"uogonek": 556,
|
||||
"203": 667,
|
||||
"Dcroat": 722,
|
||||
"commaaccent": 250,
|
||||
"169": 747,
|
||||
"Emacron": 667,
|
||||
"ccaron": 444,
|
||||
"229": 500,
|
||||
"Ncommaaccent": 722,
|
||||
"lacute": 278,
|
||||
"224": 500,
|
||||
"Tcommaaccent": 667,
|
||||
"Cacute": 722,
|
||||
"227": 500,
|
||||
"Edotaccent": 667,
|
||||
"154": 389,
|
||||
"scedilla": 389,
|
||||
"237": 278,
|
||||
"lozenge": 494,
|
||||
"Rcaron": 722,
|
||||
"Gcommaaccent": 778,
|
||||
"251": 556,
|
||||
"226": 500,
|
||||
"Amacron": 722,
|
||||
"rcaron": 444,
|
||||
"231": 444,
|
||||
"Zdotaccent": 667,
|
||||
"222": 611,
|
||||
"Omacron": 778,
|
||||
"Racute": 722,
|
||||
"Sacute": 556,
|
||||
"dcaron": 672,
|
||||
"Umacron": 722,
|
||||
"uring": 556,
|
||||
"179": 300,
|
||||
"210": 778,
|
||||
"192": 722,
|
||||
"Abreve": 722,
|
||||
"215": 570,
|
||||
"250": 556,
|
||||
"Tcaron": 667,
|
||||
"partialdiff": 494,
|
||||
"255": 500,
|
||||
"Nacute": 722,
|
||||
"238": 278,
|
||||
"202": 667,
|
||||
"228": 500,
|
||||
"235": 444,
|
||||
"cacute": 444,
|
||||
"nacute": 556,
|
||||
"umacron": 556,
|
||||
"Ncaron": 722,
|
||||
"205": 389,
|
||||
"177": 570,
|
||||
"166": 220,
|
||||
"174": 747,
|
||||
"Gbreve": 778,
|
||||
"Idotaccent": 389,
|
||||
"summation": 600,
|
||||
"200": 667,
|
||||
"racute": 444,
|
||||
"omacron": 500,
|
||||
"Zacute": 667,
|
||||
"142": 667,
|
||||
"greaterequal": 549,
|
||||
"208": 722,
|
||||
"199": 722,
|
||||
"lcommaaccent": 278,
|
||||
"tcaron": 416,
|
||||
"eogonek": 444,
|
||||
"Uogonek": 722,
|
||||
"193": 722,
|
||||
"196": 722,
|
||||
"232": 444,
|
||||
"zacute": 444,
|
||||
"iogonek": 278,
|
||||
"211": 778,
|
||||
"243": 500,
|
||||
"amacron": 500,
|
||||
"sacute": 389,
|
||||
"239": 278,
|
||||
"212": 778,
|
||||
"217": 722,
|
||||
"Delta": 612,
|
||||
"254": 556,
|
||||
"178": 300,
|
||||
"214": 778,
|
||||
"181": 556,
|
||||
"236": 278,
|
||||
"ohungarumlaut": 500,
|
||||
"Eogonek": 667,
|
||||
"dcroat": 556,
|
||||
"190": 750,
|
||||
"Scedilla": 556,
|
||||
"lcaron": 394,
|
||||
"Kcommaaccent": 778,
|
||||
"Lacute": 667,
|
||||
"153": 1000,
|
||||
"edotaccent": 444,
|
||||
"204": 389,
|
||||
"Imacron": 389,
|
||||
"Lcaron": 667,
|
||||
"189": 750,
|
||||
"lessequal": 549,
|
||||
"244": 500,
|
||||
"241": 556,
|
||||
"Uhungarumlaut": 722,
|
||||
"201": 667,
|
||||
"emacron": 444,
|
||||
"gbreve": 500,
|
||||
"188": 750,
|
||||
"138": 556,
|
||||
"Scommaaccent": 556,
|
||||
"Ohungarumlaut": 778,
|
||||
"176": 400,
|
||||
"242": 500,
|
||||
"Ccaron": 722,
|
||||
"249": 556,
|
||||
"radical": 549,
|
||||
"Dcaron": 722,
|
||||
"rcommaaccent": 444,
|
||||
"209": 722,
|
||||
"245": 500,
|
||||
"Rcommaaccent": 722,
|
||||
"Lcommaaccent": 667,
|
||||
"195": 722,
|
||||
"Aogonek": 722,
|
||||
"197": 722,
|
||||
"213": 778,
|
||||
"zdotaccent": 444,
|
||||
"Ecaron": 667,
|
||||
"Iogonek": 389,
|
||||
"kcommaaccent": 556,
|
||||
"minus": 570,
|
||||
"206": 389,
|
||||
"ncaron": 556,
|
||||
"tcommaaccent": 333,
|
||||
"172": 570,
|
||||
"246": 500,
|
||||
"252": 556,
|
||||
"notequal": 549,
|
||||
"gcommaaccent": 500,
|
||||
"240": 500,
|
||||
"158": 444,
|
||||
"ncommaaccent": 556,
|
||||
"185": 300,
|
||||
"imacron": 278,
|
||||
"128": 500
|
||||
},
|
||||
"CIDtoGID_Compressed": true,
|
||||
"CIDtoGID": "eJwDAAAAAAE=",
|
||||
"_version_": 6
|
||||
}
|
||||
-569
@@ -1,569 +0,0 @@
|
||||
{
|
||||
"codeToName": {
|
||||
"32": "space",
|
||||
"160": "space",
|
||||
"33": "exclam",
|
||||
"34": "quotedbl",
|
||||
"35": "numbersign",
|
||||
"36": "dollar",
|
||||
"37": "percent",
|
||||
"38": "ampersand",
|
||||
"146": "quoteright",
|
||||
"40": "parenleft",
|
||||
"41": "parenright",
|
||||
"42": "asterisk",
|
||||
"43": "plus",
|
||||
"44": "comma",
|
||||
"45": "hyphen",
|
||||
"173": "hyphen",
|
||||
"46": "period",
|
||||
"47": "slash",
|
||||
"48": "zero",
|
||||
"49": "one",
|
||||
"50": "two",
|
||||
"51": "three",
|
||||
"52": "four",
|
||||
"53": "five",
|
||||
"54": "six",
|
||||
"55": "seven",
|
||||
"56": "eight",
|
||||
"57": "nine",
|
||||
"58": "colon",
|
||||
"59": "semicolon",
|
||||
"60": "less",
|
||||
"61": "equal",
|
||||
"62": "greater",
|
||||
"63": "question",
|
||||
"64": "at",
|
||||
"65": "A",
|
||||
"66": "B",
|
||||
"67": "C",
|
||||
"68": "D",
|
||||
"69": "E",
|
||||
"70": "F",
|
||||
"71": "G",
|
||||
"72": "H",
|
||||
"73": "I",
|
||||
"74": "J",
|
||||
"75": "K",
|
||||
"76": "L",
|
||||
"77": "M",
|
||||
"78": "N",
|
||||
"79": "O",
|
||||
"80": "P",
|
||||
"81": "Q",
|
||||
"82": "R",
|
||||
"83": "S",
|
||||
"84": "T",
|
||||
"85": "U",
|
||||
"86": "V",
|
||||
"87": "W",
|
||||
"88": "X",
|
||||
"89": "Y",
|
||||
"90": "Z",
|
||||
"91": "bracketleft",
|
||||
"92": "backslash",
|
||||
"93": "bracketright",
|
||||
"94": "asciicircum",
|
||||
"95": "underscore",
|
||||
"145": "quoteleft",
|
||||
"97": "a",
|
||||
"98": "b",
|
||||
"99": "c",
|
||||
"100": "d",
|
||||
"101": "e",
|
||||
"102": "f",
|
||||
"103": "g",
|
||||
"104": "h",
|
||||
"105": "i",
|
||||
"106": "j",
|
||||
"107": "k",
|
||||
"108": "l",
|
||||
"109": "m",
|
||||
"110": "n",
|
||||
"111": "o",
|
||||
"112": "p",
|
||||
"113": "q",
|
||||
"114": "r",
|
||||
"115": "s",
|
||||
"116": "t",
|
||||
"117": "u",
|
||||
"118": "v",
|
||||
"119": "w",
|
||||
"120": "x",
|
||||
"121": "y",
|
||||
"122": "z",
|
||||
"123": "braceleft",
|
||||
"124": "bar",
|
||||
"125": "braceright",
|
||||
"126": "asciitilde",
|
||||
"161": "exclamdown",
|
||||
"162": "cent",
|
||||
"163": "sterling",
|
||||
"165": "yen",
|
||||
"131": "florin",
|
||||
"167": "section",
|
||||
"164": "currency",
|
||||
"39": "quotesingle",
|
||||
"147": "quotedblleft",
|
||||
"171": "guillemotleft",
|
||||
"139": "guilsinglleft",
|
||||
"155": "guilsinglright",
|
||||
"150": "endash",
|
||||
"134": "dagger",
|
||||
"135": "daggerdbl",
|
||||
"183": "periodcentered",
|
||||
"182": "paragraph",
|
||||
"149": "bullet",
|
||||
"130": "quotesinglbase",
|
||||
"132": "quotedblbase",
|
||||
"148": "quotedblright",
|
||||
"187": "guillemotright",
|
||||
"133": "ellipsis",
|
||||
"137": "perthousand",
|
||||
"191": "questiondown",
|
||||
"96": "grave",
|
||||
"180": "acute",
|
||||
"136": "circumflex",
|
||||
"152": "tilde",
|
||||
"175": "macron",
|
||||
"168": "dieresis",
|
||||
"184": "cedilla",
|
||||
"151": "emdash",
|
||||
"198": "AE",
|
||||
"170": "ordfeminine",
|
||||
"216": "Oslash",
|
||||
"140": "OE",
|
||||
"186": "ordmasculine",
|
||||
"230": "ae",
|
||||
"248": "oslash",
|
||||
"156": "oe",
|
||||
"223": "germandbls",
|
||||
"207": "Idieresis",
|
||||
"233": "eacute",
|
||||
"159": "Ydieresis",
|
||||
"247": "divide",
|
||||
"221": "Yacute",
|
||||
"194": "Acircumflex",
|
||||
"225": "aacute",
|
||||
"219": "Ucircumflex",
|
||||
"253": "yacute",
|
||||
"234": "ecircumflex",
|
||||
"220": "Udieresis",
|
||||
"218": "Uacute",
|
||||
"203": "Edieresis",
|
||||
"169": "copyright",
|
||||
"229": "aring",
|
||||
"224": "agrave",
|
||||
"227": "atilde",
|
||||
"154": "scaron",
|
||||
"237": "iacute",
|
||||
"251": "ucircumflex",
|
||||
"226": "acircumflex",
|
||||
"231": "ccedilla",
|
||||
"222": "Thorn",
|
||||
"179": "threesuperior",
|
||||
"210": "Ograve",
|
||||
"192": "Agrave",
|
||||
"215": "multiply",
|
||||
"250": "uacute",
|
||||
"255": "ydieresis",
|
||||
"238": "icircumflex",
|
||||
"202": "Ecircumflex",
|
||||
"228": "adieresis",
|
||||
"235": "edieresis",
|
||||
"205": "Iacute",
|
||||
"177": "plusminus",
|
||||
"166": "brokenbar",
|
||||
"174": "registered",
|
||||
"200": "Egrave",
|
||||
"142": "Zcaron",
|
||||
"208": "Eth",
|
||||
"199": "Ccedilla",
|
||||
"193": "Aacute",
|
||||
"196": "Adieresis",
|
||||
"232": "egrave",
|
||||
"211": "Oacute",
|
||||
"243": "oacute",
|
||||
"239": "idieresis",
|
||||
"212": "Ocircumflex",
|
||||
"217": "Ugrave",
|
||||
"254": "thorn",
|
||||
"178": "twosuperior",
|
||||
"214": "Odieresis",
|
||||
"181": "mu",
|
||||
"236": "igrave",
|
||||
"190": "threequarters",
|
||||
"153": "trademark",
|
||||
"204": "Igrave",
|
||||
"189": "onehalf",
|
||||
"244": "ocircumflex",
|
||||
"241": "ntilde",
|
||||
"201": "Eacute",
|
||||
"188": "onequarter",
|
||||
"138": "Scaron",
|
||||
"176": "degree",
|
||||
"242": "ograve",
|
||||
"249": "ugrave",
|
||||
"209": "Ntilde",
|
||||
"245": "otilde",
|
||||
"195": "Atilde",
|
||||
"197": "Aring",
|
||||
"213": "Otilde",
|
||||
"206": "Icircumflex",
|
||||
"172": "logicalnot",
|
||||
"246": "odieresis",
|
||||
"252": "udieresis",
|
||||
"240": "eth",
|
||||
"158": "zcaron",
|
||||
"185": "onesuperior",
|
||||
"128": "Euro"
|
||||
},
|
||||
"isUnicode": false,
|
||||
"FontName": "Times-Roman",
|
||||
"FullName": "Times Roman",
|
||||
"FamilyName": "Times",
|
||||
"Weight": "Roman",
|
||||
"ItalicAngle": "0",
|
||||
"IsFixedPitch": "false",
|
||||
"CharacterSet": "ExtendedRoman",
|
||||
"FontBBox": [
|
||||
"-168",
|
||||
"-218",
|
||||
"1000",
|
||||
"898"
|
||||
],
|
||||
"UnderlinePosition": "-100",
|
||||
"UnderlineThickness": "50",
|
||||
"Version": "002.00",
|
||||
"EncodingScheme": "WinAnsiEncoding",
|
||||
"CapHeight": "662",
|
||||
"XHeight": "450",
|
||||
"Ascender": "683",
|
||||
"Descender": "-217",
|
||||
"StdHW": "28",
|
||||
"StdVW": "84",
|
||||
"StartCharMetrics": "317",
|
||||
"C": {
|
||||
"32": 250,
|
||||
"160": 250,
|
||||
"33": 333,
|
||||
"34": 408,
|
||||
"35": 500,
|
||||
"36": 500,
|
||||
"37": 833,
|
||||
"38": 778,
|
||||
"146": 333,
|
||||
"40": 333,
|
||||
"41": 333,
|
||||
"42": 500,
|
||||
"43": 564,
|
||||
"44": 250,
|
||||
"45": 333,
|
||||
"173": 333,
|
||||
"46": 250,
|
||||
"47": 278,
|
||||
"48": 500,
|
||||
"49": 500,
|
||||
"50": 500,
|
||||
"51": 500,
|
||||
"52": 500,
|
||||
"53": 500,
|
||||
"54": 500,
|
||||
"55": 500,
|
||||
"56": 500,
|
||||
"57": 500,
|
||||
"58": 278,
|
||||
"59": 278,
|
||||
"60": 564,
|
||||
"61": 564,
|
||||
"62": 564,
|
||||
"63": 444,
|
||||
"64": 921,
|
||||
"65": 722,
|
||||
"66": 667,
|
||||
"67": 667,
|
||||
"68": 722,
|
||||
"69": 611,
|
||||
"70": 556,
|
||||
"71": 722,
|
||||
"72": 722,
|
||||
"73": 333,
|
||||
"74": 389,
|
||||
"75": 722,
|
||||
"76": 611,
|
||||
"77": 889,
|
||||
"78": 722,
|
||||
"79": 722,
|
||||
"80": 556,
|
||||
"81": 722,
|
||||
"82": 667,
|
||||
"83": 556,
|
||||
"84": 611,
|
||||
"85": 722,
|
||||
"86": 722,
|
||||
"87": 944,
|
||||
"88": 722,
|
||||
"89": 722,
|
||||
"90": 611,
|
||||
"91": 333,
|
||||
"92": 278,
|
||||
"93": 333,
|
||||
"94": 469,
|
||||
"95": 500,
|
||||
"145": 333,
|
||||
"97": 444,
|
||||
"98": 500,
|
||||
"99": 444,
|
||||
"100": 500,
|
||||
"101": 444,
|
||||
"102": 333,
|
||||
"103": 500,
|
||||
"104": 500,
|
||||
"105": 278,
|
||||
"106": 278,
|
||||
"107": 500,
|
||||
"108": 278,
|
||||
"109": 778,
|
||||
"110": 500,
|
||||
"111": 500,
|
||||
"112": 500,
|
||||
"113": 500,
|
||||
"114": 333,
|
||||
"115": 389,
|
||||
"116": 278,
|
||||
"117": 500,
|
||||
"118": 500,
|
||||
"119": 722,
|
||||
"120": 500,
|
||||
"121": 500,
|
||||
"122": 444,
|
||||
"123": 480,
|
||||
"124": 200,
|
||||
"125": 480,
|
||||
"126": 541,
|
||||
"161": 333,
|
||||
"162": 500,
|
||||
"163": 500,
|
||||
"fraction": 167,
|
||||
"165": 500,
|
||||
"131": 500,
|
||||
"167": 500,
|
||||
"164": 500,
|
||||
"39": 180,
|
||||
"147": 444,
|
||||
"171": 500,
|
||||
"139": 333,
|
||||
"155": 333,
|
||||
"fi": 556,
|
||||
"fl": 556,
|
||||
"150": 500,
|
||||
"134": 500,
|
||||
"135": 500,
|
||||
"183": 250,
|
||||
"182": 453,
|
||||
"149": 350,
|
||||
"130": 333,
|
||||
"132": 444,
|
||||
"148": 444,
|
||||
"187": 500,
|
||||
"133": 1000,
|
||||
"137": 1000,
|
||||
"191": 444,
|
||||
"96": 333,
|
||||
"180": 333,
|
||||
"136": 333,
|
||||
"152": 333,
|
||||
"175": 333,
|
||||
"breve": 333,
|
||||
"dotaccent": 333,
|
||||
"168": 333,
|
||||
"ring": 333,
|
||||
"184": 333,
|
||||
"hungarumlaut": 333,
|
||||
"ogonek": 333,
|
||||
"caron": 333,
|
||||
"151": 1000,
|
||||
"198": 889,
|
||||
"170": 276,
|
||||
"Lslash": 611,
|
||||
"216": 722,
|
||||
"140": 889,
|
||||
"186": 310,
|
||||
"230": 667,
|
||||
"dotlessi": 278,
|
||||
"lslash": 278,
|
||||
"248": 500,
|
||||
"156": 722,
|
||||
"223": 500,
|
||||
"207": 333,
|
||||
"233": 444,
|
||||
"abreve": 444,
|
||||
"uhungarumlaut": 500,
|
||||
"ecaron": 444,
|
||||
"159": 722,
|
||||
"247": 564,
|
||||
"221": 722,
|
||||
"194": 722,
|
||||
"225": 444,
|
||||
"219": 722,
|
||||
"253": 500,
|
||||
"scommaaccent": 389,
|
||||
"234": 444,
|
||||
"Uring": 722,
|
||||
"220": 722,
|
||||
"aogonek": 444,
|
||||
"218": 722,
|
||||
"uogonek": 500,
|
||||
"203": 611,
|
||||
"Dcroat": 722,
|
||||
"commaaccent": 250,
|
||||
"169": 760,
|
||||
"Emacron": 611,
|
||||
"ccaron": 444,
|
||||
"229": 444,
|
||||
"Ncommaaccent": 722,
|
||||
"lacute": 278,
|
||||
"224": 444,
|
||||
"Tcommaaccent": 611,
|
||||
"Cacute": 667,
|
||||
"227": 444,
|
||||
"Edotaccent": 611,
|
||||
"154": 389,
|
||||
"scedilla": 389,
|
||||
"237": 278,
|
||||
"lozenge": 471,
|
||||
"Rcaron": 667,
|
||||
"Gcommaaccent": 722,
|
||||
"251": 500,
|
||||
"226": 444,
|
||||
"Amacron": 722,
|
||||
"rcaron": 333,
|
||||
"231": 444,
|
||||
"Zdotaccent": 611,
|
||||
"222": 556,
|
||||
"Omacron": 722,
|
||||
"Racute": 667,
|
||||
"Sacute": 556,
|
||||
"dcaron": 588,
|
||||
"Umacron": 722,
|
||||
"uring": 500,
|
||||
"179": 300,
|
||||
"210": 722,
|
||||
"192": 722,
|
||||
"Abreve": 722,
|
||||
"215": 564,
|
||||
"250": 500,
|
||||
"Tcaron": 611,
|
||||
"partialdiff": 476,
|
||||
"255": 500,
|
||||
"Nacute": 722,
|
||||
"238": 278,
|
||||
"202": 611,
|
||||
"228": 444,
|
||||
"235": 444,
|
||||
"cacute": 444,
|
||||
"nacute": 500,
|
||||
"umacron": 500,
|
||||
"Ncaron": 722,
|
||||
"205": 333,
|
||||
"177": 564,
|
||||
"166": 200,
|
||||
"174": 760,
|
||||
"Gbreve": 722,
|
||||
"Idotaccent": 333,
|
||||
"summation": 600,
|
||||
"200": 611,
|
||||
"racute": 333,
|
||||
"omacron": 500,
|
||||
"Zacute": 611,
|
||||
"142": 611,
|
||||
"greaterequal": 549,
|
||||
"208": 722,
|
||||
"199": 667,
|
||||
"lcommaaccent": 278,
|
||||
"tcaron": 326,
|
||||
"eogonek": 444,
|
||||
"Uogonek": 722,
|
||||
"193": 722,
|
||||
"196": 722,
|
||||
"232": 444,
|
||||
"zacute": 444,
|
||||
"iogonek": 278,
|
||||
"211": 722,
|
||||
"243": 500,
|
||||
"amacron": 444,
|
||||
"sacute": 389,
|
||||
"239": 278,
|
||||
"212": 722,
|
||||
"217": 722,
|
||||
"Delta": 612,
|
||||
"254": 500,
|
||||
"178": 300,
|
||||
"214": 722,
|
||||
"181": 500,
|
||||
"236": 278,
|
||||
"ohungarumlaut": 500,
|
||||
"Eogonek": 611,
|
||||
"dcroat": 500,
|
||||
"190": 750,
|
||||
"Scedilla": 556,
|
||||
"lcaron": 344,
|
||||
"Kcommaaccent": 722,
|
||||
"Lacute": 611,
|
||||
"153": 980,
|
||||
"edotaccent": 444,
|
||||
"204": 333,
|
||||
"Imacron": 333,
|
||||
"Lcaron": 611,
|
||||
"189": 750,
|
||||
"lessequal": 549,
|
||||
"244": 500,
|
||||
"241": 500,
|
||||
"Uhungarumlaut": 722,
|
||||
"201": 611,
|
||||
"emacron": 444,
|
||||
"gbreve": 500,
|
||||
"188": 750,
|
||||
"138": 556,
|
||||
"Scommaaccent": 556,
|
||||
"Ohungarumlaut": 722,
|
||||
"176": 400,
|
||||
"242": 500,
|
||||
"Ccaron": 667,
|
||||
"249": 500,
|
||||
"radical": 453,
|
||||
"Dcaron": 722,
|
||||
"rcommaaccent": 333,
|
||||
"209": 722,
|
||||
"245": 500,
|
||||
"Rcommaaccent": 667,
|
||||
"Lcommaaccent": 611,
|
||||
"195": 722,
|
||||
"Aogonek": 722,
|
||||
"197": 722,
|
||||
"213": 722,
|
||||
"zdotaccent": 444,
|
||||
"Ecaron": 611,
|
||||
"Iogonek": 333,
|
||||
"kcommaaccent": 500,
|
||||
"minus": 564,
|
||||
"206": 333,
|
||||
"ncaron": 500,
|
||||
"tcommaaccent": 278,
|
||||
"172": 564,
|
||||
"246": 500,
|
||||
"252": 500,
|
||||
"notequal": 549,
|
||||
"gcommaaccent": 500,
|
||||
"240": 500,
|
||||
"158": 444,
|
||||
"ncommaaccent": 500,
|
||||
"185": 300,
|
||||
"imacron": 278,
|
||||
"128": 500
|
||||
},
|
||||
"CIDtoGID_Compressed": true,
|
||||
"CIDtoGID": "eJwDAAAAAAE=",
|
||||
"_version_": 6
|
||||
}
|
||||
+7
-9
@@ -598,17 +598,15 @@ class CPDF implements Canvas
|
||||
return $filename;
|
||||
}
|
||||
|
||||
$func_name = "imagecreatefrom$type";
|
||||
|
||||
set_error_handler([Helpers::class, "record_warnings"]);
|
||||
|
||||
if (method_exists(Helpers::class, $func_name)) {
|
||||
$func_name = [Helpers::class, $func_name];
|
||||
} elseif (!function_exists($func_name)) {
|
||||
throw new Exception("Function $func_name() not found. Cannot convert $type image: $image_url. Please install the image PHP extension.");
|
||||
}
|
||||
|
||||
try {
|
||||
$func_name = "imagecreatefrom$type";
|
||||
if (method_exists(Helpers::class, $func_name)) {
|
||||
$func_name = [Helpers::class, $func_name];
|
||||
} elseif (!function_exists($func_name)) {
|
||||
throw new Exception("Function $func_name() not found. Cannot convert $type image: $image_url. Please install the image PHP extension.");
|
||||
}
|
||||
|
||||
$im = call_user_func($func_name, $image_url);
|
||||
|
||||
if ($im) {
|
||||
|
||||
+7
-8
@@ -1078,17 +1078,16 @@ class PDFLib implements Canvas
|
||||
return $filename;
|
||||
}
|
||||
|
||||
$func_name = "imagecreatefrom$type";
|
||||
|
||||
set_error_handler([Helpers::class, "record_warnings"]);
|
||||
|
||||
if (method_exists(Helpers::class, $func_name)) {
|
||||
$func_name = [Helpers::class, $func_name];
|
||||
} elseif (!function_exists($func_name)) {
|
||||
throw new Exception("Function $func_name() not found. Cannot convert $type image: $image_url. Please install the image PHP extension.");
|
||||
}
|
||||
|
||||
try {
|
||||
$func_name = "imagecreatefrom$type";
|
||||
if (method_exists(Helpers::class, $func_name)) {
|
||||
$func_name = [Helpers::class, $func_name];
|
||||
} elseif (!function_exists($func_name)) {
|
||||
throw new Exception("Function $func_name() not found. Cannot convert $type image: $image_url. Please install the image PHP extension.");
|
||||
}
|
||||
|
||||
$im = call_user_func($func_name, $image_url);
|
||||
|
||||
if ($im) {
|
||||
|
||||
+25
-1
@@ -1311,6 +1311,7 @@ EOL;
|
||||
switch ($prev) {
|
||||
case "'":
|
||||
$pattern = "/(?<!\\\\)'/";
|
||||
break;
|
||||
case "\"":
|
||||
$pattern = "/(?<!\\\\)\"/";
|
||||
break;
|
||||
@@ -1324,6 +1325,10 @@ EOL;
|
||||
if (preg_match($pattern, $css, $matches, PREG_OFFSET_CAPTURE, $start)) {
|
||||
$len = $matches[0][1] - $start;
|
||||
}
|
||||
if ($len <= 0) {
|
||||
$offset = $start + 5;
|
||||
continue;
|
||||
}
|
||||
$data_uri = substr($css, $start, $len);
|
||||
$data_uri_hash = md5($data_uri);
|
||||
$this->_blobs[$data_uri_hash] = $data_uri;
|
||||
@@ -1493,7 +1498,7 @@ EOL;
|
||||
break;
|
||||
}
|
||||
if ($resolve_blobs === true && strpos($url, "blob://") !== false) {
|
||||
$url = $this->_blobs[substr($url, 7)];
|
||||
$url = $this->_blobs[substr($url, 7)] ?? "";
|
||||
}
|
||||
$path = Helpers::build_url(
|
||||
$this->_protocol,
|
||||
@@ -1502,6 +1507,25 @@ EOL;
|
||||
$url,
|
||||
$this->_dompdf->getOptions()->getChroot()
|
||||
);
|
||||
|
||||
if ($path !== null && strpos($path, "blob:") !== 0) {
|
||||
[$protocol] = Helpers::explode_url($path);
|
||||
$options = $this->_dompdf->getOptions();
|
||||
$allowed_protocols = $options->getAllowedProtocols();
|
||||
if (!array_key_exists($protocol, $allowed_protocols)) {
|
||||
Helpers::record_warnings(E_USER_WARNING, "Permission denied on $path. The communication protocol is not supported.", __FILE__, __LINE__);
|
||||
$path = null;
|
||||
}
|
||||
|
||||
foreach ($allowed_protocols[$protocol]["rules"] as $rule) {
|
||||
[$result, $message] = $rule($path);
|
||||
if ($result !== true) {
|
||||
Helpers::record_warnings(E_USER_WARNING, "Error loading $path: $message", __FILE__, __LINE__);
|
||||
$path = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($path === null) {
|
||||
$path = "none";
|
||||
}
|
||||
|
||||
Vendored
+3
-1
@@ -772,6 +772,8 @@ class Dompdf
|
||||
|
||||
$canvas = $this->canvas;
|
||||
|
||||
LineBox::reset_float_reflow_limit(); // FIXME smelly hack
|
||||
|
||||
$root_frame = $this->tree->get_root();
|
||||
$root = Factory::decorate_root($root_frame, $this);
|
||||
foreach ($this->tree as $frame) {
|
||||
@@ -1402,7 +1404,7 @@ class Dompdf
|
||||
if (isset($this->canvas)) {
|
||||
$this->canvas = CanvasFactory::get_instance($this, $this->paperSize, $this->paperOrientation);
|
||||
if (isset($fontMetrics)) {
|
||||
$this->fontMetrics = new FontMetrics($this->canvas, $this->options);
|
||||
$this->fontMetrics->setCanvas($this->canvas)->setOptions($options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-6
@@ -22,13 +22,10 @@ use FontLib\Font;
|
||||
class FontMetrics
|
||||
{
|
||||
/**
|
||||
* Name of the user font families file
|
||||
* Name of the user font families lookup cache file
|
||||
*
|
||||
* This file must be writable by the webserver process only to update it
|
||||
* with save_font_families() after adding the .afm file references of a new font family
|
||||
* with FontMetrics::saveFontFamilies().
|
||||
* This is typically done only from command line with load_font.php on converting
|
||||
* ttf fonts to ufm with php-font-lib.
|
||||
* This file must be readable and writable by the executing (webserver)
|
||||
* process in order to cache user installed font information.
|
||||
*/
|
||||
const USER_FONTS_FILE = "installed-fonts.json";
|
||||
|
||||
|
||||
Vendored
+6
-3
@@ -677,9 +677,12 @@ class Frame
|
||||
public function set_containing_block($x = null, $y = null, $w = null, $h = null)
|
||||
{
|
||||
if (is_array($x)) {
|
||||
foreach ($x as $key => $val) {
|
||||
$$key = $val;
|
||||
}
|
||||
list($x, $y, $w, $h) = [
|
||||
$x["x"] ?? null,
|
||||
$x["y"] ?? null,
|
||||
$x["w"] ?? null,
|
||||
$x["h"] ?? null
|
||||
];
|
||||
}
|
||||
|
||||
if (is_numeric($x)) {
|
||||
|
||||
Vendored
+55
-10
@@ -59,7 +59,7 @@ class Helpers
|
||||
public static function build_url($protocol, $host, $base_path, $url, $chrootDirs = [])
|
||||
{
|
||||
$protocol = mb_strtolower($protocol, "UTF-8");
|
||||
if (empty($protocol)) {
|
||||
if (empty($protocol) || $protocol === "data://") {
|
||||
$protocol = "file://";
|
||||
}
|
||||
if ($url === "") {
|
||||
@@ -792,12 +792,20 @@ class Helpers
|
||||
}
|
||||
|
||||
/**
|
||||
* getimagesize doesn't give a good size for 32bit BMP image v5
|
||||
* Shim for PHP's getimagesize to handle formats that the function
|
||||
* does not handle natively.
|
||||
*
|
||||
* @param string $filename
|
||||
* @param resource $context
|
||||
* @return array An array of three elements: width and height as
|
||||
* `float|int`, and image type as `string|null`.
|
||||
* @return array An array of 8 elements, by index:
|
||||
* - `float|int` width
|
||||
* - `float|int` height
|
||||
* - `string|null` image type
|
||||
* - `int|null` type constant
|
||||
* - `string|null` mime type
|
||||
* - `int|null` channels
|
||||
* - `int|null` bits
|
||||
* - `int|null` estimated memory size in bytes
|
||||
*/
|
||||
public static function dompdf_getimagesize($filename, $context = null)
|
||||
{
|
||||
@@ -820,10 +828,13 @@ class Helpers
|
||||
}
|
||||
|
||||
$parse_result = @getimagesize($filename);
|
||||
$width = $height = $type = null;
|
||||
$width = $height = $type = $typeconst = $mime = $channels = $bits = $bytes = null;
|
||||
if ($parse_result !== false) {
|
||||
[$width, $height, $type] = $parse_result;
|
||||
$type = $types[$type] ?? null;
|
||||
[$width, $height, $typeconst] = $parse_result;
|
||||
$type = $types[$typeconst] ?? null;
|
||||
$mime = $parse_result['mime'] ?? null;
|
||||
$channels = $parse_result['channels'] ?? null;
|
||||
$bits = $parse_result['bits'] ?? null;
|
||||
}
|
||||
|
||||
if ($width == null || $height == null) {
|
||||
@@ -831,23 +842,57 @@ class Helpers
|
||||
|
||||
if ($data !== null) {
|
||||
if (substr($data, 0, 2) === "BM") {
|
||||
$meta = unpack("vtype/Vfilesize/Vreserved/Voffset/Vheadersize/Vwidth/Vheight", $data);
|
||||
$meta = unpack("vtype/Vfilesize/Vreserved/Voffset/Vheadersize/Vwidth/Vheight/vplanes/vbits/Vcompression/Vimagesize/Vxres/Vyres/Vcolors", $data);
|
||||
$width = (int) $meta["width"];
|
||||
$height = (int) $meta["height"];
|
||||
$type = "bmp";
|
||||
$typeconst = IMAGETYPE_BMP;
|
||||
$mime = "image/bmp";
|
||||
$bits = (int) $meta["bits"];
|
||||
$channels = $bits > 24 ? 4 : 3;
|
||||
} elseif (strpos($data, "<svg") !== false) {
|
||||
$doc = new \Svg\Document();
|
||||
if (property_exists($doc, 'allowExternalReferences')) {
|
||||
$doc->allowExternalReferences = true;
|
||||
}
|
||||
$doc->loadFile($filename);
|
||||
|
||||
[$width, $height] = $doc->getDimensions();
|
||||
$width = (float) $width;
|
||||
$height = (float) $height;
|
||||
$type = "svg";
|
||||
if (defined('IMAGETYPE_SVG')) {
|
||||
$typeconst = IMAGETYPE_SVG;
|
||||
}
|
||||
$mime = "image/svg+xml";
|
||||
$bits = 32;
|
||||
$channels = 4;
|
||||
$bytes = strlen($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $cache[$filename] = [$width ?? 0, $height ?? 0, $type];
|
||||
if ($width !== null && $height !== null) {
|
||||
switch ($type) {
|
||||
case IMAGETYPE_BMP:
|
||||
$channels = $channels > 0 ? $channels : 4;
|
||||
$bits = $bits > 0 ? $bits : 24;
|
||||
case IMAGETYPE_PNG:
|
||||
case IMAGETYPE_WEBP:
|
||||
$channels = $channels > 0 ? $channels : 4;
|
||||
$bits = $bits > 0 ? $bits : 8;
|
||||
break;
|
||||
default:
|
||||
$channels = $channels > 0 ? $channels : 3;
|
||||
$bits = $bits > 0 ? $bits : 8;
|
||||
break;
|
||||
}
|
||||
|
||||
// Memory in bytes
|
||||
$bytes = $width * $height * $channels * ($bits / 8);
|
||||
}
|
||||
|
||||
return $cache[$filename] = [$width ?? 0, $height ?? 0, $type, $typeconst, $mime, $channels ?? 4, $bits ?? 8, $bytes];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -862,7 +907,7 @@ class Helpers
|
||||
return false;
|
||||
}
|
||||
|
||||
if (function_exists("imagecreatefrombmp") && ($im = imagecreatefrombmp($filename)) !== false) {
|
||||
if (function_exists("imagecreatefrombmp") && ($im = @imagecreatefrombmp($filename)) !== false) {
|
||||
return $im;
|
||||
}
|
||||
|
||||
|
||||
+7
-2
@@ -128,12 +128,17 @@ class Cache
|
||||
throw new ImageException("Image not readable or empty", E_WARNING);
|
||||
}
|
||||
|
||||
list($width, $height, $type) = Helpers::dompdf_getimagesize($resolved_url, $options->getHttpContext());
|
||||
list($width, $height, $type, , , , , $imageBytes) = Helpers::dompdf_getimagesize($resolved_url, $options->getHttpContext());
|
||||
|
||||
if (($width && $height && in_array($type, ["gif", "png", "jpeg", "bmp", "svg","webp"], true)) === false) {
|
||||
throw new ImageException("Image type unknown", E_WARNING);
|
||||
}
|
||||
|
||||
$maxImageBytes = $options->getImageByteSizeLimit();
|
||||
if ($width <= 0 || $height <= 0 || ($maxImageBytes > 0 && ($imageBytes === null || $imageBytes > $maxImageBytes))) {
|
||||
throw new ImageException("Image dimensions or size exceed the configured limit", E_WARNING);
|
||||
}
|
||||
|
||||
if ($type === "svg") {
|
||||
$parser = xml_parser_create("utf-8");
|
||||
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false);
|
||||
@@ -155,7 +160,7 @@ class Cache
|
||||
|
||||
$inner_full_url = Helpers::build_url($parsed_url["protocol"], $parsed_url["host"], $parsed_url["path"], $url, $options->getChroot());
|
||||
if (empty($inner_full_url)) {
|
||||
continue;
|
||||
throw new ImageException("This SVG document references a resource that could not be resolved.", E_WARNING);
|
||||
}
|
||||
|
||||
self::detectCircularRef($full_url, $inner_full_url);
|
||||
|
||||
Vendored
+21
-3
@@ -91,6 +91,18 @@ class LineBox
|
||||
*/
|
||||
public $inline = false;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public static $max_float_reflows = 10000;
|
||||
|
||||
/**
|
||||
* FIXME smelly hack, used by the get_float_offsets method.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private static $float_offset_anti_infinite_loop = 10000;
|
||||
|
||||
/**
|
||||
* @param Block $frame the Block containing this line
|
||||
* @param float $y
|
||||
@@ -152,10 +164,16 @@ class LineBox
|
||||
return $childs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the anti-infinite-loop counter for the get_float_offsets method.
|
||||
*/
|
||||
public static function reset_float_reflow_limit(): void
|
||||
{
|
||||
self::$float_offset_anti_infinite_loop = self::$max_float_reflows;
|
||||
}
|
||||
|
||||
public function get_float_offsets(): void
|
||||
{
|
||||
static $anti_infinite_loop = 10000; // FIXME smelly hack
|
||||
|
||||
$reflower = $this->_block_frame->get_reflower();
|
||||
|
||||
if (!$reflower) {
|
||||
@@ -201,7 +219,7 @@ class LineBox
|
||||
}
|
||||
|
||||
// If the child is still shifted by the floating element
|
||||
if ($anti_infinite_loop-- > 0 &&
|
||||
if (self::$float_offset_anti_infinite_loop-- > 0 &&
|
||||
$floating_frame->get_position("y") + $floating_frame->get_margin_height() >= $this->y &&
|
||||
$block->get_position("x") + $block->get_margin_width() >= $floating_frame->get_position("x")
|
||||
) {
|
||||
|
||||
Vendored
+51
-6
@@ -163,6 +163,13 @@ class Options
|
||||
*/
|
||||
private $fontHeightRatio = 1.1;
|
||||
|
||||
/**
|
||||
* The maximum estimated in-memory size of an image allowed to be rendered, in bytes.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $imageByteSizeLimit = -1;
|
||||
|
||||
/**
|
||||
* Enable embedded PHP
|
||||
*
|
||||
@@ -356,7 +363,7 @@ class Options
|
||||
|
||||
$ver = "";
|
||||
$versionFile = realpath(__DIR__ . '/../VERSION');
|
||||
if (($version = file_get_contents($versionFile)) !== false) {
|
||||
if (file_exists($versionFile) && ($version = file_get_contents($versionFile)) !== false) {
|
||||
$version = trim($version);
|
||||
if ($version !== '$Format:<%h>$') {
|
||||
$ver = "/$version";
|
||||
@@ -373,6 +380,10 @@ class Options
|
||||
|
||||
$this->setArtifactPathValidation([$this, "validateArtifactPath"]);
|
||||
|
||||
// Get the memory limit
|
||||
$memory_limit = ini_get('memory_limit');
|
||||
$this->setImageByteSizeLimit($memory_limit);
|
||||
|
||||
if (null !== $attributes) {
|
||||
$this->set($attributes);
|
||||
}
|
||||
@@ -887,6 +898,36 @@ class Options
|
||||
return $this->fontHeightRatio;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $imageMemoryLimit
|
||||
* @return $this
|
||||
*/
|
||||
public function setImageByteSizeLimit($imageByteSizeLimit)
|
||||
{
|
||||
// Convert shorthand notation to bytes
|
||||
if (preg_match('/^(\\d+)([KMG])$/i', $imageByteSizeLimit, $matches)) {
|
||||
if (strtoupper($matches[2]) == 'K') {
|
||||
$imageByteSizeLimit = (int)$matches[1] * 1024;
|
||||
} elseif (strtoupper($matches[2]) == 'M') {
|
||||
$imageByteSizeLimit = (int)$matches[1] * 1024 * 1024;
|
||||
} elseif (strtoupper($matches[2]) == 'G') {
|
||||
$imageByteSizeLimit = (int)$matches[1] * 1024 * 1024 * 1024;
|
||||
}
|
||||
}
|
||||
if (is_numeric($imageByteSizeLimit)) {
|
||||
$this->imageByteSizeLimit = $imageByteSizeLimit > 0 ? $imageByteSizeLimit : -1;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getImageByteSizeLimit()
|
||||
{
|
||||
return $this->imageByteSizeLimit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $isFontSubsettingEnabled
|
||||
* @return $this
|
||||
@@ -1175,13 +1216,21 @@ class Options
|
||||
}
|
||||
|
||||
$realfile = realpath(str_replace("file://", "", $uri));
|
||||
if ($realfile === false) {
|
||||
return [false, "File not found."];
|
||||
}
|
||||
|
||||
$dirs = $this->chroot;
|
||||
$dirs[] = $this->rootDir;
|
||||
$chrootValid = false;
|
||||
foreach ($dirs as $chrootPath) {
|
||||
$chrootPath = realpath($chrootPath);
|
||||
if ($chrootPath !== false && strpos($realfile, $chrootPath) === 0) {
|
||||
if ($chrootPath === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$normalizedChrootPath = rtrim($chrootPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||
if ($realfile === $chrootPath || strncmp($realfile, $normalizedChrootPath, strlen($normalizedChrootPath)) === 0) {
|
||||
$chrootValid = true;
|
||||
break;
|
||||
}
|
||||
@@ -1190,10 +1239,6 @@ class Options
|
||||
return [false, "Permission denied. The file could not be found under the paths specified by Options::chroot."];
|
||||
}
|
||||
|
||||
if (!$realfile) {
|
||||
return [false, "File not found."];
|
||||
}
|
||||
|
||||
return [true, null];
|
||||
}
|
||||
|
||||
|
||||
+45
-20
@@ -467,6 +467,14 @@ abstract class AbstractRenderer
|
||||
|| ($tmpFile !== null && file_exists($tmpFile));
|
||||
|
||||
if (!$cached) {
|
||||
// determmine if image is too big to be rendered
|
||||
$maxImageBytes = $this->_dompdf->getOptions()->getImageByteSizeLimit();
|
||||
$bgBytes = $bg_width * $bg_height * 4 * 4; // 4 channels with 4 bytes per channel (e.g. truecolor with alpha)
|
||||
if ($maxImageBytes > 0 && ($bgBytes === null || $bgBytes > $maxImageBytes)) {
|
||||
Helpers::record_warnings(E_USER_WARNING, "Background image dimensions are too large to be rendered (calculated size: " . round($bgBytes / 1048576, 2) . " MB).", __FILE__, __LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
// img: image url string
|
||||
// img_w, img_h: original image size in px
|
||||
// width, height: box size in pt
|
||||
@@ -481,28 +489,30 @@ abstract class AbstractRenderer
|
||||
$bg = imagecreatetruecolor($bg_width, $bg_height);
|
||||
$cpdfFromGd = true;
|
||||
|
||||
$func_name = "imagecreatefrom$type";
|
||||
if (method_exists(Helpers::class, $func_name)) {
|
||||
$func_name = [Helpers::class, $func_name];
|
||||
} elseif (!function_exists($func_name)) {
|
||||
if (isset($bg) && PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($bg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
switch (strtolower($type)) {
|
||||
/** @noinspection PhpMissingBreakStatementInspection */
|
||||
case "png":
|
||||
$cpdfFromGd = false;
|
||||
imagesavealpha($bg, true);
|
||||
imagealphablending($bg, false);
|
||||
$src = @imagecreatefrompng($img);
|
||||
break;
|
||||
|
||||
/** @noinspection PhpMissingBreakStatementInspection */
|
||||
case "jpeg":
|
||||
$src = @imagecreatefromjpeg($img);
|
||||
break;
|
||||
|
||||
/** @noinspection PhpMissingBreakStatementInspection */
|
||||
case "webp":
|
||||
$src = @imagecreatefromwebp($img);
|
||||
break;
|
||||
|
||||
/** @noinspection PhpMissingBreakStatementInspection */
|
||||
case "gif":
|
||||
$src = @imagecreatefromgif($img);
|
||||
break;
|
||||
|
||||
case "bmp":
|
||||
$src = @Helpers::imagecreatefrombmp($img);
|
||||
$src = @call_user_func($func_name, $img);
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -510,21 +520,36 @@ abstract class AbstractRenderer
|
||||
}
|
||||
|
||||
if ($src == null) {
|
||||
if (isset($bg) && PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($bg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if ($img_w != $org_img_w || $img_h != $org_img_h) {
|
||||
$newSrc = imagecreatetruecolor($img_w, $img_h);
|
||||
imagealphablending($newSrc, false);
|
||||
imagesavealpha($newSrc, true);
|
||||
imagecopyresampled($newSrc, $src, 0, 0, 0, 0, $img_w, $img_h, imagesx($src), imagesy($src));
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($src);
|
||||
$imgBytes = $img_w * $img_h * 4 * 4; // 4 channels with 4 bytes per channel (e.g. truecolor with alpha)
|
||||
if ($maxImageBytes > 0 && ($imgBytes === null || $imgBytes > $maxImageBytes)) {
|
||||
Helpers::record_warnings(E_USER_WARNING, "Background image is too large to be rendered (calculated size: " . round($imgBytes / 1048576, 2) . " MB).", __FILE__, __LINE__);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($src);
|
||||
}
|
||||
$src = null;
|
||||
} else {
|
||||
$newSrc = imagecreatetruecolor($img_w, $img_h);
|
||||
imagealphablending($newSrc, false);
|
||||
imagesavealpha($newSrc, true);
|
||||
imagecopyresampled($newSrc, $src, 0, 0, 0, 0, $img_w, $img_h, imagesx($src), imagesy($src));
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($src);
|
||||
}
|
||||
$src = $newSrc;
|
||||
}
|
||||
$src = $newSrc;
|
||||
}
|
||||
|
||||
if ($src == null) {
|
||||
if (isset($bg) && PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($bg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
FontLib was designed and developed by Fabien Ménager.
|
||||
|
||||
### Current Team
|
||||
|
||||
* **Brian Sweeney** (maintainer)
|
||||
|
||||
### Alumni
|
||||
|
||||
* **Fabien Ménager** (creator)
|
||||
|
||||
### Contributors
|
||||
* **mondrake**
|
||||
* [and many more...](https://github.com/dompdf/php-font-lib/graphs/contributors)
|
||||
|
||||
### Thanks
|
||||
|
||||
FontLib would not have been possible without strong community support.
|
||||
+4
-4
@@ -20,14 +20,14 @@
|
||||
"FontLib\\Tests\\": "tests/FontLib"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"bin-dir": "bin"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"ext-mbstring": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge" : "^3 || ^4 || ^5 || ^6"
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11 || ^12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit"
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -120,7 +120,7 @@ class BinaryStream {
|
||||
* @return bool True if the $offset position exists in the file
|
||||
*/
|
||||
public function seek($offset) {
|
||||
return fseek($this->f, $offset, SEEK_SET) == 0;
|
||||
return fseek($this->f, (int)$offset, SEEK_SET) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -158,7 +158,11 @@ class BinaryStream {
|
||||
}
|
||||
|
||||
public function readUInt8() {
|
||||
return ord($this->read(1));
|
||||
$byte = $this->read(1);
|
||||
if ($byte === '') {
|
||||
return 0;
|
||||
}
|
||||
return ord($byte);
|
||||
}
|
||||
|
||||
public function readUInt8Many($count) {
|
||||
|
||||
@@ -69,28 +69,34 @@ class Collection extends BinaryStream implements Iterator, Countable {
|
||||
return $this->collection[$fontId] = $font;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function current() {
|
||||
return $this->getFont($this->position);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function key() {
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function next() {
|
||||
return ++$this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function rewind() {
|
||||
$this->position = 0;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function valid() {
|
||||
$this->parse();
|
||||
|
||||
return isset($this->collectionOffsets[$this->position]);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function count() {
|
||||
$this->parse();
|
||||
|
||||
|
||||
+2
-2
@@ -23,9 +23,9 @@
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"ext-mbstring": "*",
|
||||
"sabberworm/php-css-parser": "^8.4"
|
||||
"sabberworm/php-css-parser": "^8.4 || ^9.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9 || ^10 || ^11"
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -161,7 +161,9 @@ class Document extends AbstractTag
|
||||
}
|
||||
xml_parse($parser, "", true);
|
||||
|
||||
xml_parser_free($parser);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
xml_parser_free($parser);
|
||||
}
|
||||
|
||||
return $this->handleSizeAttributes($rootAttributes);
|
||||
}
|
||||
@@ -257,7 +259,9 @@ class Document extends AbstractTag
|
||||
|
||||
xml_parse($parser, "", true);
|
||||
|
||||
xml_parser_free($parser);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
xml_parser_free($parser);
|
||||
}
|
||||
}
|
||||
|
||||
protected function svgOffset($attributes)
|
||||
|
||||
+13
-2
@@ -109,6 +109,7 @@ class Style
|
||||
$class = isset($attributes["class"]) ? preg_split('/\s+/', trim($attributes["class"])) : null;
|
||||
|
||||
$stylesheets = $tag->getDocument()->getStyleSheets();
|
||||
$outputFormat = \Sabberworm\CSS\OutputFormat::createCompact();
|
||||
|
||||
$styles = array();
|
||||
|
||||
@@ -127,7 +128,12 @@ class Style
|
||||
if ($_selector === ".$_class") {
|
||||
/** @var \Sabberworm\CSS\Rule\Rule $_rule */
|
||||
foreach ($_decl->getRules() as $_rule) {
|
||||
$styles[$_rule->getRule()] = $_rule->getValue() . "";
|
||||
$value = $_rule->getValue();
|
||||
if ($value instanceof \Sabberworm\CSS\Value\Value) {
|
||||
$styles[$_rule->getRule()] = $value->render($outputFormat) . "";
|
||||
} else {
|
||||
$styles[$_rule->getRule()] = $value . "";
|
||||
}
|
||||
}
|
||||
|
||||
break 2;
|
||||
@@ -139,7 +145,12 @@ class Style
|
||||
if ($_selector === $tag->tagName) {
|
||||
/** @var \Sabberworm\CSS\Rule\Rule $_rule */
|
||||
foreach ($_decl->getRules() as $_rule) {
|
||||
$styles[$_rule->getRule()] = $_rule->getValue() . "";
|
||||
$value = $_rule->getValue();
|
||||
if ($value instanceof \Sabberworm\CSS\Value\Value) {
|
||||
$styles[$_rule->getRule()] = $value->render($outputFormat) . "";
|
||||
} else {
|
||||
$styles[$_rule->getRule()] = $value . "";
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
+19
-7
@@ -5612,7 +5612,9 @@ EOT;
|
||||
// Cast to 8bit+palette
|
||||
$imgalpha_ = @imagecreatefrompng($tempfile_alpha);
|
||||
imagecopy($imgalpha, $imgalpha_, 0, 0, 0, 0, $wpx, $hpx);
|
||||
imagedestroy($imgalpha_);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($imgalpha_);
|
||||
}
|
||||
imagepng($imgalpha, $tempfile_alpha);
|
||||
|
||||
// Make opaque image
|
||||
@@ -5658,7 +5660,9 @@ EOT;
|
||||
// Cast to 8bit+palette
|
||||
$imgalpha_ = @imagecreatefrompng($tempfile_alpha);
|
||||
imagecopy($imgalpha, $imgalpha_, 0, 0, 0, 0, $wpx, $hpx);
|
||||
imagedestroy($imgalpha_);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($imgalpha_);
|
||||
}
|
||||
imagepng($imgalpha, $tempfile_alpha);
|
||||
} else {
|
||||
$tempfile_alpha = null;
|
||||
@@ -5711,7 +5715,9 @@ EOT;
|
||||
// extract image without alpha channel
|
||||
$imgplain = imagecreatetruecolor($wpx, $hpx);
|
||||
imagecopy($imgplain, $img, 0, 0, 0, 0, $wpx, $hpx);
|
||||
imagedestroy($img);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($img);
|
||||
}
|
||||
|
||||
imagepng($imgalpha, $tempfile_alpha);
|
||||
imagepng($imgplain, $tempfile_plain);
|
||||
@@ -5722,13 +5728,17 @@ EOT;
|
||||
// embed mask image
|
||||
if ($tempfile_alpha) {
|
||||
$this->addImagePng($imgalpha, $tempfile_alpha, $x, $y, $w, $h, true);
|
||||
imagedestroy($imgalpha);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($imgalpha);
|
||||
}
|
||||
$this->imageCache[] = $tempfile_alpha;
|
||||
}
|
||||
|
||||
// embed image, masked with previously embedded mask
|
||||
$this->addImagePng($imgplain, $tempfile_plain, $x, $y, $w, $h, false, ($tempfile_alpha !== null));
|
||||
imagedestroy($imgplain);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($imgplain);
|
||||
}
|
||||
$this->imageCache[] = $tempfile_plain;
|
||||
}
|
||||
|
||||
@@ -5813,11 +5823,13 @@ EOT;
|
||||
}
|
||||
|
||||
imagecopy($img, $imgtmp, 0, 0, 0, 0, $sx, $sy);
|
||||
imagedestroy($imgtmp);
|
||||
if (PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($imgtmp);
|
||||
}
|
||||
}
|
||||
$this->addImagePng($img, $file, $x, $y, $w, $h);
|
||||
|
||||
if ($img) {
|
||||
if ($img && PHP_MAJOR_VERSION < 8) {
|
||||
imagedestroy($img);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -28,7 +28,7 @@ HTML5 provides the following features.
|
||||
- Event-based (SAX-like) parser
|
||||
- A DOM tree builder
|
||||
- Interoperability with [QueryPath](https://github.com/technosophos/querypath)
|
||||
- Runs on **PHP** 5.3.0 or newer
|
||||
- Runs on **PHP** 7.4 or newer
|
||||
|
||||
[](https://github.com/Masterminds/html5-php/actions/workflows/ci.yaml)
|
||||
[](https://packagist.org/packages/masterminds/html5)
|
||||
|
||||
+2
-2
@@ -21,10 +21,10 @@
|
||||
],
|
||||
"require" : {
|
||||
"ext-dom": "*",
|
||||
"php" : ">=5.3.0"
|
||||
"php" : ">=7.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit" : "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
|
||||
"phpunit/phpunit" : "^6 || ^7 || ^8 || ^9 || ^10"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {"Masterminds\\": "src"}
|
||||
|
||||
@@ -310,6 +310,7 @@ class Elements
|
||||
'feDiffuseLighting' => 1,
|
||||
'feDisplacementMap' => 1,
|
||||
'feDistantLight' => 1,
|
||||
'feDropShadow' => 1,
|
||||
'feFlood' => 1,
|
||||
'feFuncA' => 1,
|
||||
'feFuncB' => 1,
|
||||
@@ -463,6 +464,7 @@ class Elements
|
||||
'fediffuselighting' => 'feDiffuseLighting',
|
||||
'fedisplacementmap' => 'feDisplacementMap',
|
||||
'fedistantlight' => 'feDistantLight',
|
||||
'fedropshadow' => 'feDropShadow',
|
||||
'feflood' => 'feFlood',
|
||||
'fefunca' => 'feFuncA',
|
||||
'fefuncb' => 'feFuncB',
|
||||
|
||||
@@ -397,9 +397,9 @@ class DOMTreeBuilder implements EventHandler
|
||||
// When we are on a void tag, we do not need to care about namesapce nesting.
|
||||
if ($pushes > 0 && !Elements::isA($name, Elements::VOID_TAG)) {
|
||||
// PHP tends to free the memory used by DOM,
|
||||
// to avoid spl_object_hash collisions whe have to avoid garbage collection of $ele storing it into $pushes
|
||||
// to avoid spl_object_id collisions we have to avoid garbage collection of $ele storing it into $pushes
|
||||
// see https://bugs.php.net/bug.php?id=67459
|
||||
$this->pushes[spl_object_hash($ele)] = array($pushes, $ele);
|
||||
$this->pushes[spl_object_id($ele)] = array($pushes, $ele);
|
||||
}
|
||||
|
||||
foreach ($attributes as $aName => $aVal) {
|
||||
@@ -521,7 +521,7 @@ class DOMTreeBuilder implements EventHandler
|
||||
$lname = Elements::normalizeSvgElement($lname);
|
||||
}
|
||||
|
||||
$cid = spl_object_hash($this->current);
|
||||
$cid = spl_object_id($this->current);
|
||||
|
||||
// XXX: HTML has no parent. What do we do, though,
|
||||
// if this element appears in the wrong place?
|
||||
|
||||
@@ -1208,6 +1208,10 @@ class Tokenizer
|
||||
*/
|
||||
protected function is_alpha($input)
|
||||
{
|
||||
if (!is_string($input) || 1 !== strlen($input)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$code = ord($input);
|
||||
|
||||
return ($code >= 97 && $code <= 122) || ($code >= 65 && $code <= 90);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,9 +16,6 @@ use Masterminds\HTML5\Elements;
|
||||
*/
|
||||
class OutputRules implements RulesInterface
|
||||
{
|
||||
/**
|
||||
* Defined in http://www.w3.org/TR/html51/infrastructure.html#html-namespace-0.
|
||||
*/
|
||||
const NAMESPACE_HTML = 'http://www.w3.org/1999/xhtml';
|
||||
|
||||
const NAMESPACE_MATHML = 'http://www.w3.org/1998/Math/MathML';
|
||||
@@ -50,13 +47,6 @@ class OutputRules implements RulesInterface
|
||||
|
||||
const IM_IN_MATHML = 3;
|
||||
|
||||
/**
|
||||
* Used as cache to detect if is available ENT_HTML5.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $hasHTML5 = false;
|
||||
|
||||
protected $traverser;
|
||||
|
||||
protected $encode = false;
|
||||
@@ -167,7 +157,6 @@ class OutputRules implements RulesInterface
|
||||
|
||||
$this->outputMode = static::IM_IN_HTML;
|
||||
$this->out = $output;
|
||||
$this->hasHTML5 = defined('ENT_HTML5');
|
||||
}
|
||||
|
||||
public function addRule(array $rule)
|
||||
@@ -454,7 +443,7 @@ class OutputRules implements RulesInterface
|
||||
*/
|
||||
protected function wr($text)
|
||||
{
|
||||
fwrite($this->out, $text);
|
||||
fwrite($this->out, (string) $text);
|
||||
|
||||
return $this;
|
||||
}
|
||||
@@ -489,12 +478,8 @@ class OutputRules implements RulesInterface
|
||||
* This includes such characters as +.# and many other common ones. By default
|
||||
* encoding here will just escape &'<>".
|
||||
*
|
||||
* Note, PHP 5.4+ has better html5 encoding.
|
||||
*
|
||||
* @todo Use the Entities class in php 5.3 to have html5 entities.
|
||||
*
|
||||
* @param string $text Text to encode.
|
||||
* @param bool $attribute True if we are encoding an attrubute, false otherwise.
|
||||
* @param bool $attribute True if we are encoding an attribute, false otherwise.
|
||||
*
|
||||
* @return string The encoded text.
|
||||
*/
|
||||
@@ -505,16 +490,7 @@ class OutputRules implements RulesInterface
|
||||
return $this->escape($text, $attribute);
|
||||
}
|
||||
|
||||
// If we are in PHP 5.4+ we can use the native html5 entity functionality to
|
||||
// convert the named character references.
|
||||
|
||||
if ($this->hasHTML5) {
|
||||
return htmlentities($text, ENT_HTML5 | ENT_SUBSTITUTE | ENT_QUOTES, 'UTF-8', false);
|
||||
} // If a version earlier than 5.4 html5 entities are not entirely handled.
|
||||
// This manually handles them.
|
||||
else {
|
||||
return strtr($text, HTML5Entities::$map);
|
||||
}
|
||||
return htmlentities($text, ENT_HTML5 | ENT_SUBSTITUTE | ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@
|
||||
"require": {
|
||||
"php": ">=7.4",
|
||||
"ext-tokenizer": "*",
|
||||
"ext-json": "*",
|
||||
"ext-ctype": "*"
|
||||
"ext-json": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.0",
|
||||
|
||||
@@ -215,9 +215,7 @@ class ConstExprEvaluator {
|
||||
case '<': return $this->evaluate($l) < $this->evaluate($r);
|
||||
case '<=': return $this->evaluate($l) <= $this->evaluate($r);
|
||||
case '<=>': return $this->evaluate($l) <=> $this->evaluate($r);
|
||||
case '|>':
|
||||
$lval = $this->evaluate($l);
|
||||
return $this->evaluate($r)($lval);
|
||||
case '|>': return ($this->fallbackEvaluator)($expr);
|
||||
}
|
||||
|
||||
throw new \Exception('Should not happen');
|
||||
|
||||
@@ -9,6 +9,7 @@ use PhpParser\Lexer\TokenEmulator\AsymmetricVisibilityTokenEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\AttributeEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\EnumTokenEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\ExplicitOctalEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\FnTokenEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\MatchTokenEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\NullsafeTokenEmulator;
|
||||
use PhpParser\Lexer\TokenEmulator\PipeOperatorEmulator;
|
||||
@@ -40,6 +41,7 @@ class Emulative extends Lexer {
|
||||
$this->hostPhpVersion = PhpVersion::getHostVersion();
|
||||
|
||||
$emulators = [
|
||||
new FnTokenEmulator(),
|
||||
new MatchTokenEmulator(),
|
||||
new NullsafeTokenEmulator(),
|
||||
new AttributeEmulator(),
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace PhpParser\Lexer\TokenEmulator;
|
||||
|
||||
use PhpParser\PhpVersion;
|
||||
|
||||
// Retained for reverse emulation support only.
|
||||
final class FnTokenEmulator extends KeywordEmulator {
|
||||
public function getPhpVersion(): PhpVersion {
|
||||
return PhpVersion::fromString('7.4');
|
||||
}
|
||||
|
||||
public function getKeywordString(): string {
|
||||
return 'fn';
|
||||
}
|
||||
|
||||
public function getKeywordToken(): int {
|
||||
return \T_FN;
|
||||
}
|
||||
}
|
||||
+5
-4
@@ -14,7 +14,7 @@ abstract class KeywordEmulator extends TokenEmulator {
|
||||
|
||||
/** @param Token[] $tokens */
|
||||
protected function isKeywordContext(array $tokens, int $pos): bool {
|
||||
$prevToken = $this->getPreviousNonSpaceToken($tokens, $pos);
|
||||
$prevToken = $this->getPreviousNonIgnorableToken($tokens, $pos);
|
||||
if ($prevToken === null) {
|
||||
return false;
|
||||
}
|
||||
@@ -35,13 +35,14 @@ abstract class KeywordEmulator extends TokenEmulator {
|
||||
}
|
||||
|
||||
/** @param Token[] $tokens */
|
||||
private function getPreviousNonSpaceToken(array $tokens, int $start): ?Token {
|
||||
private function getPreviousNonIgnorableToken(array $tokens, int $start): ?Token {
|
||||
for ($i = $start - 1; $i >= 0; --$i) {
|
||||
if ($tokens[$i]->id === T_WHITESPACE) {
|
||||
$token = $tokens[$i];
|
||||
if ($token->id === T_WHITESPACE || $token->id == T_COMMENT || $token->id === T_DOC_COMMENT) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return $tokens[$i];
|
||||
return $token;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
@@ -1078,6 +1078,13 @@ abstract class ParserAbstract implements Parser {
|
||||
$node->default->getAttributes()
|
||||
));
|
||||
}
|
||||
|
||||
if ($node->type instanceof Identifier && $node->type->name === 'void') {
|
||||
$this->emitError(new Error(
|
||||
'void cannot be used as a parameter type',
|
||||
$node->type->getAttributes()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
protected function checkTryCatch(TryCatch $node): void {
|
||||
|
||||
@@ -1006,9 +1006,25 @@ abstract class PrettyPrinterAbstract implements PrettyPrinter {
|
||||
|
||||
list($findToken, $extraLeft, $extraRight) = $this->emptyListInsertionMap[$mapKey];
|
||||
if (null !== $findToken) {
|
||||
$insertPos = $this->origTokens->findRight($pos, $findToken) + 1;
|
||||
$result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
|
||||
$pos = $insertPos;
|
||||
// For anon classes skip to the class keyword.
|
||||
$isAnonClassArgs = $mapKey === PrintableNewAnonClassNode::class . '->args';
|
||||
if ($isAnonClassArgs) {
|
||||
$insertPos = $this->origTokens->findRight($pos, \T_CLASS) + 1;
|
||||
$result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
|
||||
$pos = $insertPos;
|
||||
}
|
||||
|
||||
// If "new Foo" was used without arguments, we need to convert to "new Foo()".
|
||||
if (($mapKey === Expr\New_::class . '->args' || $isAnonClassArgs) &&
|
||||
!$this->origTokens->haveTokenImmediatelyAfter($pos - 1, '(')
|
||||
) {
|
||||
$extraLeft = '(';
|
||||
$extraRight = ')';
|
||||
} else {
|
||||
$insertPos = $this->origTokens->findRight($pos, $findToken) + 1;
|
||||
$result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
|
||||
$pos = $insertPos;
|
||||
}
|
||||
}
|
||||
|
||||
$first = true;
|
||||
@@ -1293,7 +1309,7 @@ abstract class PrettyPrinterAbstract implements PrettyPrinter {
|
||||
$this->labelCharMap = [];
|
||||
for ($i = 0; $i < 256; $i++) {
|
||||
$chr = chr($i);
|
||||
$this->labelCharMap[$chr] = $i >= 0x80 || ctype_alnum($chr);
|
||||
$this->labelCharMap[$chr] = (bool) preg_match('/^[a-zA-Z0-9_\x80-\xff]$/', $chr);
|
||||
}
|
||||
|
||||
if ($this->phpVersion->allowsDelInIdentifiers()) {
|
||||
|
||||
+44
-1
@@ -5,13 +5,56 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org). This is always true of the master branch. Some earlier branches, including the branch from which you are reading this file, remain supported and security fixes are applied to them; if the security fix represents a breaking change, it may have to be applied as a minor or patch version.
|
||||
|
||||
## 2026-07-12 - 1.30.6
|
||||
|
||||
### Fixed
|
||||
|
||||
- Security patches.
|
||||
|
||||
## 2026-05-30 - 1.30.5
|
||||
|
||||
### Security Note
|
||||
|
||||
- File::prohibitWrappers and Drawing::setPath now reject phar paths with extra leading slashes (e.g. phar:///…) that escaped the prior parse_url-based filter.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Third-party security patches.
|
||||
|
||||
## 2026-04-19 - 1.30.4
|
||||
|
||||
### Fixed
|
||||
|
||||
- Security patches.
|
||||
|
||||
## 2026-04-09 - 1.30.3
|
||||
|
||||
### Fixed
|
||||
|
||||
- Security patches.
|
||||
- Option to whitelist external images. Security-related backport of [PR #4793](https://github.com/PHPOffice/PhpSpreadsheet/pull/4793)
|
||||
|
||||
## 2026-01-10 - 1.30.2
|
||||
|
||||
### Changed
|
||||
|
||||
- Evaluation of WEBSERVICE no longer requires external client, but will use oldCalculatedValue unless the request is for a domain in a user-supplied whitelist. Security-related backport of [PR #4751](https://github.com/PHPOffice/PhpSpreadsheet/pull/4751)
|
||||
|
||||
### Deprecated
|
||||
|
||||
- Settings methods setHttpClient, unsetHttpClient, getHttpClient, and getRequestFactory are no longer used. No replacement.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Changes to WEBSERVICE. Backport of [PR #4751](https://github.com/PHPOffice/PhpSpreadsheet/pull/4751)
|
||||
|
||||
## 2025-10-25 - 1.30.1
|
||||
|
||||
### Functionally Frozen
|
||||
|
||||
- Except for security changes, no further maintenance will be applied to this branch.
|
||||
You are encouraged to upgrade to a maintained branch as soon as possible.
|
||||
Maintained branches are master (preferred - version is 5.2.0 as of the date when this is being written), release390 (current version is 3.10.1), and release222 (2.4.1).
|
||||
Maintained branches are master (preferred - version is 5.4.0 as of the date when this is being written), 3.10.x (current version is 3.10.3), and 2.4.x (2.4.3).
|
||||
- Of particular note is that this branch should not run under Php 8.5+, and will *not* be updated to avoid deprecation notices introduced with Php 8.5.
|
||||
|
||||
## 2025-08-10 - 1.30.0
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019-2025 PhpSpreadsheet Authors
|
||||
Copyright (c) 2019-2026 PhpSpreadsheet Authors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
+3
-3
@@ -4,19 +4,19 @@
|
||||
[](https://coveralls.io/github/PHPOffice/PhpSpreadsheet?branch=master)
|
||||
[](https://packagist.org/packages/phpoffice/phpspreadsheet)
|
||||
[](https://packagist.org/packages/phpoffice/phpspreadsheet)
|
||||
[](https://packagist.org/packages/phpoffice/phpspreadsheet)
|
||||
[](https://packagist.org/packages/phpoffice/phpspreadsheet)
|
||||
[](https://gitter.im/PHPOffice/PhpSpreadsheet)
|
||||
|
||||
PhpSpreadsheet is a library written in pure PHP and offers a set of classes that
|
||||
allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc.
|
||||
|
||||
This branch (release1291) is *not* the latest version of PhpSpreadsheet, and may therefore lack features and bug fixes found in the latest version.
|
||||
This branch (1.30.x) is *not* the latest version of PhpSpreadsheet, and may therefore lack features and bug fixes found in the latest version.
|
||||
|
||||
## Security Changes Only
|
||||
|
||||
Except for security changes, no further maintenance will be applied to this branch.
|
||||
You are encouraged to upgrade to a maintained branch as soon as possible.
|
||||
Maintained branches are master (preferred - version is 5.2.0 as of the date when this is being written), release390 (current version is 3.10.1), and release222 (2.4.1).
|
||||
Maintained branches are master (preferred - version is 5.4.0 as of the date when this is being written), 3.10.x (current version is 3.10.3), and 2.4.x (2.4.3).
|
||||
|
||||
Of particular note is that this branch should not run under Php 8.5, and will *not* be updated to avoid deprecation notices which will be introduced with Php 8.5.
|
||||
|
||||
|
||||
+4
-2
@@ -39,6 +39,9 @@
|
||||
},
|
||||
{
|
||||
"name": "Adrien Crivelli"
|
||||
},
|
||||
{
|
||||
"name": "Owen Leibman"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
@@ -81,12 +84,11 @@
|
||||
"maennchen/zipstream-php": "^2.1 || ^3.0",
|
||||
"markbaker/complex": "^3.0",
|
||||
"markbaker/matrix": "^3.0",
|
||||
"psr/http-client": "^1.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "dev-main",
|
||||
"doctrine/instantiator": "^1.5",
|
||||
"dompdf/dompdf": "^1.0 || ^2.0 || ^3.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.2",
|
||||
"mitoteam/jpgraph": "^10.3",
|
||||
|
||||
+1
@@ -2789,6 +2789,7 @@ class Calculation
|
||||
'category' => Category::CATEGORY_WEB,
|
||||
'functionCall' => [Web\Service::class, 'webService'],
|
||||
'argumentCount' => '1',
|
||||
'passCellReference' => true,
|
||||
],
|
||||
'WEEKDAY' => [
|
||||
'category' => Category::CATEGORY_DATE_AND_TIME,
|
||||
|
||||
@@ -26,6 +26,8 @@ class Functions
|
||||
const RETURNDATE_PHP_DATETIME_OBJECT = 'O';
|
||||
const RETURNDATE_EXCEL = 'E';
|
||||
|
||||
public const NOT_YET_IMPLEMENTED = '#Not Yet Implemented';
|
||||
|
||||
/**
|
||||
* Compatibility mode to use for error checking and responses.
|
||||
*
|
||||
|
||||
@@ -21,7 +21,7 @@ class Web
|
||||
* Use the webService() method in the Web\Service class instead
|
||||
* @see Web\Service::webService()
|
||||
*
|
||||
* @return string the output resulting from a call to the webservice
|
||||
* @return ?string the output resulting from a call to the webservice
|
||||
*/
|
||||
public static function WEBSERVICE(string $url)
|
||||
{
|
||||
|
||||
+40
-24
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Calculation\Web;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
|
||||
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
|
||||
use PhpOffice\PhpSpreadsheet\Settings;
|
||||
use Psr\Http\Client\ClientExceptionInterface;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\Cell;
|
||||
|
||||
class Service
|
||||
{
|
||||
@@ -16,40 +16,56 @@ class Service
|
||||
* Excel Function:
|
||||
* Webservice(url)
|
||||
*
|
||||
* @return string the output resulting from a call to the webservice
|
||||
* @param mixed $url
|
||||
*
|
||||
* @return ?string the output resulting from a call to the webservice
|
||||
*/
|
||||
public static function webService(string $url)
|
||||
public static function webService($url, ?Cell $cell = null)
|
||||
{
|
||||
$url = trim($url);
|
||||
if (strlen($url) > 2048) {
|
||||
if (is_array($url)) {
|
||||
$url = Functions::flattenSingleValue($url);
|
||||
}
|
||||
if (!is_string($url)) {
|
||||
return ExcelError::VALUE(); // Invalid URL length
|
||||
}
|
||||
|
||||
if (!preg_match('/^http[s]?:\/\//', $url)) {
|
||||
$url = trim($url);
|
||||
if (mb_strlen($url) > 2048) {
|
||||
return ExcelError::VALUE(); // Invalid URL length
|
||||
}
|
||||
$parsed = parse_url($url);
|
||||
$scheme = $parsed['scheme'] ?? '';
|
||||
if ($scheme !== 'http' && $scheme !== 'https') {
|
||||
return ExcelError::VALUE(); // Invalid protocol
|
||||
}
|
||||
|
||||
// Get results from the the webservice
|
||||
$client = Settings::getHttpClient();
|
||||
$requestFactory = Settings::getRequestFactory();
|
||||
$request = $requestFactory->createRequest('GET', $url);
|
||||
|
||||
try {
|
||||
$response = $client->sendRequest($request);
|
||||
} catch (ClientExceptionInterface $e) {
|
||||
return ExcelError::VALUE(); // cURL error
|
||||
$domainWhiteList = [];
|
||||
if ($cell !== null) {
|
||||
$parent = $cell->getWorksheet()->getParent();
|
||||
if ($parent !== null) {
|
||||
$domainWhiteList = $parent->getDomainWhiteList();
|
||||
}
|
||||
}
|
||||
$host = $parsed['host'] ?? '';
|
||||
if (!in_array($host, $domainWhiteList, true)) {
|
||||
return ($cell === null) ? null : Functions::NOT_YET_IMPLEMENTED; // will be converted to oldCalculatedValue or null
|
||||
}
|
||||
|
||||
if ($response->getStatusCode() != 200) {
|
||||
return ExcelError::VALUE(); // cURL error
|
||||
// Get results from the webservice
|
||||
$ctxArray = [
|
||||
'http' => [
|
||||
'follow_location' => 0,
|
||||
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
|
||||
],
|
||||
];
|
||||
if ($scheme === 'https') {
|
||||
$ctxArray['ssl'] = ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT];
|
||||
}
|
||||
|
||||
$output = $response->getBody()->getContents();
|
||||
if (strlen($output) > 32767) {
|
||||
$ctx = stream_context_create($ctxArray);
|
||||
$output = @file_get_contents($url, false, $ctx);
|
||||
if ($output === false || mb_strlen($output) > 32767) {
|
||||
return ExcelError::VALUE(); // Output not a string or too long
|
||||
}
|
||||
|
||||
return $output;
|
||||
return ($output === '') ? Functions::NOT_YET_IMPLEMENTED : $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,17 +23,15 @@ class Downloader
|
||||
|
||||
public function __construct(string $folder, string $filename, ?string $filetype = null)
|
||||
{
|
||||
if ((is_dir($folder) === false) || (is_readable($folder) === false)) {
|
||||
throw new Exception('Folder is not accessible');
|
||||
}
|
||||
$filepath = "{$folder}/{$filename}";
|
||||
$this->filepath = (string) realpath($filepath);
|
||||
$this->filename = basename($filepath);
|
||||
if ((file_exists($this->filepath) === false) || (is_readable($this->filepath) === false)) {
|
||||
clearstatcache();
|
||||
$filepath = realpath("{$folder}/{$filename}");
|
||||
if ($filepath === false || !is_file($filepath) || !is_readable($filepath)) {
|
||||
throw new Exception('File not found, or cannot be read');
|
||||
}
|
||||
$this->filepath = $filepath;
|
||||
$this->filename = basename($this->filepath);
|
||||
|
||||
$filetype ??= pathinfo($filename, PATHINFO_EXTENSION);
|
||||
$filetype ??= pathinfo($this->filename, PATHINFO_EXTENSION);
|
||||
if (array_key_exists(strtolower($filetype), self::CONTENT_TYPES) === false) {
|
||||
throw new Exception('Invalid filetype: cannot be downloaded');
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ abstract class IOFactory
|
||||
public const WRITER_CSV = 'Csv';
|
||||
public const WRITER_HTML = 'Html';
|
||||
|
||||
/** @var string[] */
|
||||
/** @var array<string, class-string<IReader>> */
|
||||
private static $readers = [
|
||||
self::READER_XLSX => Reader\Xlsx::class,
|
||||
self::READER_XLS => Reader\Xls::class,
|
||||
@@ -236,4 +236,16 @@ abstract class IOFactory
|
||||
|
||||
self::$readers[$readerType] = $readerClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, class-string<IReader>>
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function getReaders(): array
|
||||
{
|
||||
return self::$readers;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Reader;
|
||||
|
||||
use Closure;
|
||||
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\Exception as ReaderException;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\Security\XmlScanner;
|
||||
@@ -68,6 +69,9 @@ abstract class BaseReader implements IReader
|
||||
*/
|
||||
protected $securityScanner;
|
||||
|
||||
/** @var null|Closure(string):bool function to return whether image path is okay */
|
||||
protected ?Closure $isWhitelisted = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->readFilter = new DefaultReadFilter();
|
||||
@@ -220,9 +224,10 @@ abstract class BaseReader implements IReader
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow external images. Use with caution.
|
||||
* Improper specification of these within a spreadsheet
|
||||
* can subject the caller to security exploits.
|
||||
* USE WITH CAUTION (and in conjunction with setIsWhiteListed)!
|
||||
* Allow external images;
|
||||
* these can be specified within a spreadsheet
|
||||
* in a way that can subject the caller to security exploits.
|
||||
*/
|
||||
public function setAllowExternalImages(bool $allowExternalImages)
|
||||
{
|
||||
@@ -235,4 +240,20 @@ abstract class BaseReader implements IReader
|
||||
{
|
||||
return $this->allowExternalImages;
|
||||
}
|
||||
|
||||
/**
|
||||
* USE WITH CAUTION!
|
||||
* Supply a callback to determine whether a path should be whitelisted,
|
||||
* used in conjunction with setAllowExternalImages;
|
||||
* supplying a method which might return true
|
||||
* can subject the caller to security exploits.
|
||||
*
|
||||
* @param Closure(string):bool $isWhitelisted
|
||||
*/
|
||||
public function setIsWhitelisted(Closure $isWhitelisted): self
|
||||
{
|
||||
$this->isWhitelisted = $isWhitelisted;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,14 @@ class Gnumeric extends BaseReader
|
||||
],
|
||||
];
|
||||
|
||||
protected int $maxLength;
|
||||
|
||||
private const LENGTH_MULTIPLIER = [
|
||||
'G' => 1024 * 1024 * 1024,
|
||||
'M' => 1024 * 1024,
|
||||
'K' => 1024,
|
||||
];
|
||||
|
||||
/**
|
||||
* Create a new Gnumeric.
|
||||
*/
|
||||
@@ -72,6 +80,20 @@ class Gnumeric extends BaseReader
|
||||
parent::__construct();
|
||||
$this->referenceHelper = ReferenceHelper::getInstance();
|
||||
$this->securityScanner = XmlScanner::getInstance($this);
|
||||
$limit = ini_get('memory_limit') ?: '128M';
|
||||
$limit = trim(str_replace('-1', '128M', $limit));
|
||||
$unit = strtoupper(substr($limit, -1));
|
||||
$limit = (int) $limit;
|
||||
$multiplier = self::LENGTH_MULTIPLIER[$unit] ?? 1;
|
||||
$limit *= $multiplier;
|
||||
$this->maxLength = intdiv($limit, 4);
|
||||
}
|
||||
|
||||
public function setMaxLength(int $maxLength): self
|
||||
{
|
||||
$this->maxLength = $maxLength;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -196,7 +218,7 @@ class Gnumeric extends BaseReader
|
||||
if (substr($contents, 0, 2) === "\x1f\x8b") {
|
||||
// Check if gzlib functions are available
|
||||
if (function_exists('gzdecode')) {
|
||||
$contents = @gzdecode($contents);
|
||||
$contents = @gzdecode($contents, $this->maxLength);
|
||||
if ($contents !== false) {
|
||||
$data = $contents;
|
||||
}
|
||||
|
||||
@@ -1084,7 +1084,7 @@ class Html extends BaseReader
|
||||
$name = $attributes['alt'] ?? null;
|
||||
|
||||
$drawing = new Drawing();
|
||||
$drawing->setPath($src, false, null, $this->allowExternalImages);
|
||||
$drawing->setPath($src, false, null, $this->allowExternalImages, $this->isWhitelisted);
|
||||
if ($drawing->getPath() === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1436,7 +1436,7 @@ class Xlsx extends BaseReader
|
||||
);
|
||||
if (isset($images[$linkImageKey])) {
|
||||
$url = str_replace('xl/drawings/', '', $images[$linkImageKey]);
|
||||
$objDrawing->setPath($url, false, null, $this->allowExternalImages);
|
||||
$objDrawing->setPath($url, false, null, $this->allowExternalImages, $this->isWhitelisted);
|
||||
}
|
||||
if ($objDrawing->getPath() === '') {
|
||||
continue;
|
||||
@@ -1525,7 +1525,7 @@ class Xlsx extends BaseReader
|
||||
);
|
||||
if (isset($images[$linkImageKey])) {
|
||||
$url = str_replace('xl/drawings/', '', $images[$linkImageKey]);
|
||||
$objDrawing->setPath($url, false, null, $this->allowExternalImages);
|
||||
$objDrawing->setPath($url, false, null, $this->allowExternalImages, $this->isWhitelisted);
|
||||
}
|
||||
if ($objDrawing->getPath() === '') {
|
||||
continue;
|
||||
|
||||
+14
-6
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Cell\AddressRange;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\DefaultReadFilter;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\IReadFilter;
|
||||
@@ -196,24 +197,31 @@ class ColumnAndRowAttributes extends BaseParserClass
|
||||
{
|
||||
$rowAttributes = [];
|
||||
|
||||
$rowIndex = 0;
|
||||
foreach ($worksheetRow as $rowx) {
|
||||
/** @scrutinizer ignore-call */
|
||||
$row = $rowx->attributes();
|
||||
++$rowIndex;
|
||||
if ($row !== null) {
|
||||
if (isset($row['r'])) {
|
||||
$rowIndex = (int) $row['r'];
|
||||
}
|
||||
if ($rowIndex < 1 || $rowIndex > AddressRange::MAX_ROW) {
|
||||
continue;
|
||||
}
|
||||
if (isset($row['ht']) && !$readDataOnly) {
|
||||
$rowAttributes[(int) $row['r']]['rowHeight'] = (float) $row['ht'];
|
||||
$rowAttributes[$rowIndex]['rowHeight'] = (float) $row['ht'];
|
||||
}
|
||||
if (isset($row['hidden']) && self::boolean($row['hidden'])) {
|
||||
$rowAttributes[(int) $row['r']]['visible'] = false;
|
||||
$rowAttributes[$rowIndex]['visible'] = false;
|
||||
}
|
||||
if (isset($row['collapsed']) && self::boolean($row['collapsed'])) {
|
||||
$rowAttributes[(int) $row['r']]['collapsed'] = true;
|
||||
$rowAttributes[$rowIndex]['collapsed'] = true;
|
||||
}
|
||||
if (isset($row['outlineLevel']) && (int) $row['outlineLevel'] > 0) {
|
||||
$rowAttributes[(int) $row['r']]['outlineLevel'] = (int) $row['outlineLevel'];
|
||||
$rowAttributes[$rowIndex]['outlineLevel'] = (int) $row['outlineLevel'];
|
||||
}
|
||||
if (isset($row['s']) && !$readDataOnly) {
|
||||
$rowAttributes[(int) $row['r']]['xfIndex'] = (int) $row['s'];
|
||||
$rowAttributes[$rowIndex]['xfIndex'] = (int) $row['s'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace PhpOffice\PhpSpreadsheet\Reader;
|
||||
use DateTime;
|
||||
use DateTimeZone;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\AddressHelper;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\AddressRange;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
|
||||
use PhpOffice\PhpSpreadsheet\Cell\DataType;
|
||||
use PhpOffice\PhpSpreadsheet\DefinedName;
|
||||
@@ -75,6 +76,7 @@ class Xml extends BaseReader
|
||||
];
|
||||
|
||||
// Open file
|
||||
File::assertFile($filename);
|
||||
$data = (string) file_get_contents($filename);
|
||||
$data = $this->getSecurityScannerOrThrow()->scan($data);
|
||||
|
||||
@@ -353,15 +355,19 @@ class Xml extends BaseReader
|
||||
}
|
||||
}
|
||||
|
||||
$rowID = 1;
|
||||
$rowID = 0;
|
||||
if (isset($worksheet->Table->Row)) {
|
||||
$additionalMergedCells = 0;
|
||||
foreach ($worksheet->Table->Row as $rowData) {
|
||||
$rowHasData = false;
|
||||
++$rowID;
|
||||
$row_ss = self::getAttributes($rowData, self::NAMESPACES_SS);
|
||||
if (isset($row_ss['Index'])) {
|
||||
$rowID = (int) $row_ss['Index'];
|
||||
}
|
||||
if ($rowID < 1 || $rowID > AddressRange::MAX_ROW) {
|
||||
continue;
|
||||
}
|
||||
if (isset($row_ss['Hidden'])) {
|
||||
$rowVisible = ((string) $row_ss['Hidden']) !== '1';
|
||||
$spreadsheet->getActiveSheet()->getRowDimension($rowID)->setVisible($rowVisible);
|
||||
@@ -495,8 +501,6 @@ class Xml extends BaseReader
|
||||
$spreadsheet->getActiveSheet()->getRowDimension($rowID)->setRowHeight((float) $rowHeight);
|
||||
}
|
||||
}
|
||||
|
||||
++$rowID;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+20
-15
@@ -5,8 +5,6 @@ namespace PhpOffice\PhpSpreadsheet;
|
||||
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
|
||||
use PhpOffice\PhpSpreadsheet\Chart\Renderer\IRenderer;
|
||||
use PhpOffice\PhpSpreadsheet\Collection\Memory;
|
||||
use Psr\Http\Client\ClientInterface;
|
||||
use Psr\Http\Message\RequestFactoryInterface;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use ReflectionClass;
|
||||
|
||||
@@ -37,12 +35,12 @@ class Settings
|
||||
/**
|
||||
* The HTTP client implementation to be used for network request.
|
||||
*
|
||||
* @var null|ClientInterface
|
||||
* @var mixed
|
||||
*/
|
||||
private static $httpClient;
|
||||
|
||||
/**
|
||||
* @var null|RequestFactoryInterface
|
||||
* @var mixed
|
||||
*/
|
||||
private static $requestFactory;
|
||||
|
||||
@@ -181,8 +179,13 @@ class Settings
|
||||
|
||||
/**
|
||||
* Set the HTTP client implementation to be used for network request.
|
||||
*
|
||||
* @param mixed $httpClient
|
||||
* @param mixed $requestFactory
|
||||
*
|
||||
* @deprecated 1.30.2 No replacement.
|
||||
*/
|
||||
public static function setHttpClient(ClientInterface $httpClient, RequestFactoryInterface $requestFactory): void
|
||||
public static function setHttpClient($httpClient, $requestFactory): void
|
||||
{
|
||||
self::$httpClient = $httpClient;
|
||||
self::$requestFactory = $requestFactory;
|
||||
@@ -190,6 +193,8 @@ class Settings
|
||||
|
||||
/**
|
||||
* Unset the HTTP client configuration.
|
||||
*
|
||||
* @deprecated 1.30.2 No replacement.
|
||||
*/
|
||||
public static function unsetHttpClient(): void
|
||||
{
|
||||
@@ -199,25 +204,25 @@ class Settings
|
||||
|
||||
/**
|
||||
* Get the HTTP client implementation to be used for network request.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @deprecated 1.30.2 No replacement.
|
||||
*/
|
||||
public static function getHttpClient(): ClientInterface
|
||||
public static function getHttpClient()
|
||||
{
|
||||
if (!self::$httpClient || !self::$requestFactory) {
|
||||
throw new Exception('HTTP client must be configured via Settings::setHttpClient() to be able to use WEBSERVICE function.');
|
||||
}
|
||||
|
||||
return self::$httpClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP request factory.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @deprecated 1.30.2 No replacement.
|
||||
*/
|
||||
public static function getRequestFactory(): RequestFactoryInterface
|
||||
public static function getRequestFactory()
|
||||
{
|
||||
if (!self::$httpClient || !self::$requestFactory) {
|
||||
throw new Exception('HTTP client must be configured via Settings::setHttpClient() to be able to use WEBSERVICE function.');
|
||||
}
|
||||
|
||||
return self::$requestFactory;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Shared;
|
||||
|
||||
use Composer\Pcre\Preg;
|
||||
use PhpOffice\PhpSpreadsheet\Exception;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\Exception as ReaderException;
|
||||
use ZipArchive;
|
||||
@@ -140,11 +141,33 @@ class File
|
||||
return $filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Blocks phar:// and similar RCE-bearing wrappers.
|
||||
* Note that many protocols, including http and zip, will already
|
||||
* return false for is_file.
|
||||
* A whitelist of protocols may be added if needed in future.
|
||||
* data: is intentionally allowed; callers needing strict
|
||||
* on-disk-only semantics must validate $filename themselves.
|
||||
*/
|
||||
public static function prohibitWrappers(string $filename): void
|
||||
{
|
||||
if (
|
||||
Preg::IsMatch('~^phar://~i', $filename)
|
||||
|| (Preg::isMatch('/^([\w.\s\x00-\x1f]+):/', $filename) && !Preg::isMatch('/^([\w.]+):/', $filename))
|
||||
|| Preg::isMatch('~^[\w.]+://.*phar:~is', $filename)
|
||||
) {
|
||||
throw new Exception(
|
||||
"Disallowed stream wrapper: {$filename}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that given path is an existing file and is readable, otherwise throw exception.
|
||||
*/
|
||||
public static function assertFile(string $filename, string $zipMember = ''): void
|
||||
{
|
||||
self::prohibitWrappers($filename);
|
||||
if (!is_file($filename)) {
|
||||
throw new ReaderException('File "' . $filename . '" does not exist.');
|
||||
}
|
||||
@@ -167,9 +190,11 @@ class File
|
||||
|
||||
/**
|
||||
* Same as assertFile, except return true/false and don't throw Exception.
|
||||
* Will nevertheless throw if filename uses invalid protocol, e.g. phar.
|
||||
*/
|
||||
public static function testFileNoThrow(string $filename, ?string $zipMember = null): bool
|
||||
{
|
||||
self::prohibitWrappers($filename);
|
||||
if (!is_file($filename)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,9 @@ class OLERead
|
||||
*/
|
||||
private $props = [];
|
||||
|
||||
/** @var int[] */
|
||||
private array $possibleLoop = [];
|
||||
|
||||
/**
|
||||
* Read the file.
|
||||
*/
|
||||
@@ -170,7 +173,9 @@ class OLERead
|
||||
|
||||
$sbdBlock = $this->sbdStartBlock;
|
||||
$this->smallBlockChain = '';
|
||||
$this->possibleLoop = [];
|
||||
while ($sbdBlock != -2) {
|
||||
$this->catchLoop($sbdBlock);
|
||||
$pos = ($sbdBlock + 1) * self::BIG_BLOCK_SIZE;
|
||||
|
||||
$this->smallBlockChain .= substr($this->data, $pos, 4 * $bbs);
|
||||
@@ -186,6 +191,14 @@ class OLERead
|
||||
$this->readPropertySets();
|
||||
}
|
||||
|
||||
private function catchLoop(int $sbdBlock): void
|
||||
{
|
||||
if (in_array($sbdBlock, $this->possibleLoop, true)) {
|
||||
throw new ReaderException('Detected loop while iterating blocks');
|
||||
}
|
||||
$this->possibleLoop[] = $sbdBlock;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract binary stream data.
|
||||
*
|
||||
@@ -206,7 +219,9 @@ class OLERead
|
||||
|
||||
$block = $this->props[$stream]['startBlock'];
|
||||
|
||||
$this->possibleLoop = [];
|
||||
while ($block != -2) {
|
||||
$this->catchLoop($block);
|
||||
$pos = $block * self::SMALL_BLOCK_SIZE;
|
||||
$streamData .= substr($rootdata, $pos, self::SMALL_BLOCK_SIZE);
|
||||
|
||||
@@ -226,7 +241,9 @@ class OLERead
|
||||
|
||||
$block = $this->props[$stream]['startBlock'];
|
||||
|
||||
$this->possibleLoop = [];
|
||||
while ($block != -2) {
|
||||
$this->catchLoop($block);
|
||||
$pos = ($block + 1) * self::BIG_BLOCK_SIZE;
|
||||
$streamData .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
|
||||
$block = self::getInt4d($this->bigBlockChain, $block * 4);
|
||||
@@ -246,7 +263,9 @@ class OLERead
|
||||
{
|
||||
$data = '';
|
||||
|
||||
$this->possibleLoop = [];
|
||||
while ($block != -2) {
|
||||
$this->catchLoop($block);
|
||||
$pos = ($block + 1) * self::BIG_BLOCK_SIZE;
|
||||
$data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
|
||||
$block = self::getInt4d($this->bigBlockChain, $block * 4);
|
||||
|
||||
@@ -1679,4 +1679,25 @@ class Spreadsheet implements JsonSerializable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** @var string[] */
|
||||
private $domainWhiteList = [];
|
||||
|
||||
/**
|
||||
* Currently used only by WEBSERVICE function.
|
||||
*
|
||||
* @param string[] $domainWhiteList
|
||||
*/
|
||||
public function setDomainWhiteList(array $domainWhiteList): self
|
||||
{
|
||||
$this->domainWhiteList = $domainWhiteList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** @return string[] */
|
||||
public function getDomainWhiteList(): array
|
||||
{
|
||||
return $this->domainWhiteList;
|
||||
}
|
||||
}
|
||||
|
||||
+28
-2
@@ -14,6 +14,7 @@ class Formatter
|
||||
* Matches any @ symbol that isn't enclosed in quotes.
|
||||
*/
|
||||
private const SYMBOL_AT = '/@(?=(?:[^"]*"[^"]*")*[^"]*\Z)/miu';
|
||||
private const QUOTE_REPLACEMENT = "\u{fffe}"; // invalid Unicode character
|
||||
|
||||
/**
|
||||
* Matches any ; symbol that isn't enclosed in quotes, for a "section" split.
|
||||
@@ -137,8 +138,33 @@ class Formatter
|
||||
}
|
||||
// For now we do not treat strings in sections, although section 4 of a format code affects strings
|
||||
// Process a single block format code containing @ for text substitution
|
||||
if (preg_match(self::SECTION_SPLIT, $format) === 0 && preg_match(self::SYMBOL_AT, $format) === 1) {
|
||||
return str_replace('"', '', preg_replace(self::SYMBOL_AT, (string) $value, $format) ?? '');
|
||||
$formatx = str_replace('\"', self::QUOTE_REPLACEMENT, $format);
|
||||
if (preg_match(self::SECTION_SPLIT, $format) === 0 && preg_match(self::SYMBOL_AT, $formatx) === 1) {
|
||||
if (strpos($format, '"') === false) {
|
||||
$temp = str_replace('@', "$value", $format);
|
||||
if (is_callable($callBack)) {
|
||||
$temp = $callBack($temp, $format);
|
||||
}
|
||||
|
||||
return $temp;
|
||||
}
|
||||
//escape any dollar signs on the string, so they are not replaced with an empty value
|
||||
$value = str_replace(
|
||||
['$', '"'],
|
||||
['\$', self::QUOTE_REPLACEMENT],
|
||||
(string) $value
|
||||
);
|
||||
$temp = preg_replace(self::SYMBOL_AT, $value, $formatx) ?? $value;
|
||||
if (is_callable($callBack)) {
|
||||
$temp = $callBack($temp, $formatx);
|
||||
}
|
||||
/** @var string $temp */
|
||||
|
||||
return str_replace(
|
||||
['"', self::QUOTE_REPLACEMENT],
|
||||
['', '"'],
|
||||
$temp
|
||||
);
|
||||
}
|
||||
|
||||
// If we have a text value, return it "as is"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Worksheet;
|
||||
|
||||
use Composer\Pcre\Preg;
|
||||
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
|
||||
use ZipArchive;
|
||||
|
||||
@@ -102,33 +103,50 @@ class Drawing extends BaseDrawing
|
||||
* @param bool $verifyFile Verify file
|
||||
* @param ZipArchive $zip Zip archive instance
|
||||
* @param bool $allowExternal
|
||||
* @param null|callable(string):bool $isWhitelisted
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPath($path, $verifyFile = true, $zip = null, $allowExternal = true)
|
||||
public function setPath($path, $verifyFile = true, $zip = null, $allowExternal = true, ?callable $isWhitelisted = null)
|
||||
{
|
||||
$this->isUrl = false;
|
||||
if (preg_match('~^data:image/[a-z]+;base64,~', $path) === 1) {
|
||||
if (Preg::isMatch('~^data:image/[a-z]+;base64,~', $path)) {
|
||||
$this->path = $path;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->path = '';
|
||||
if ($zip instanceof ZipArchive) {
|
||||
$zipPath = explode('#', $path)[1];
|
||||
$locate = @$zip->locateName($zipPath);
|
||||
if ($locate !== false) {
|
||||
if ($this->isImage($path)) {
|
||||
$this->path = $path;
|
||||
$this->setSizesAndType($path);
|
||||
}
|
||||
}
|
||||
// Check if a URL has been passed. https://stackoverflow.com/a/2058596/1252979
|
||||
if (filter_var($path, FILTER_VALIDATE_URL) || (preg_match('/^([\w\s\x00-\x1f]+):/u', $path) && !preg_match('/^([\w]+):/u', $path))) {
|
||||
if (!preg_match('/^(http|https|file|ftp|s3):/', $path)) {
|
||||
} elseif (
|
||||
filter_var($path, FILTER_VALIDATE_URL)
|
||||
|| Preg::isMatch('~^phar://~i', $path)
|
||||
|| (Preg::isMatch('/^([\w.\s\x00-\x1f]+):/', $path) && !Preg::isMatch('/^([\w.]+):/', $path))
|
||||
) {
|
||||
if (!Preg::isMatch('/^(http|https|file|ftp|s3):/', $path)) {
|
||||
throw new PhpSpreadsheetException('Invalid protocol for linked drawing');
|
||||
}
|
||||
if (!$allowExternal) {
|
||||
return $this;
|
||||
}
|
||||
if ($isWhitelisted !== null && !$isWhitelisted($path)) {
|
||||
return $this;
|
||||
}
|
||||
// Implicit that it is a URL, rather store info than running check above on value in other places.
|
||||
$this->isUrl = true;
|
||||
$ctx = null;
|
||||
// https://github.com/php/php-src/issues/16023
|
||||
// https://github.com/php/php-src/issues/17121
|
||||
if (preg_match('/^https?:/', $path) === 1) {
|
||||
if (Preg::isMatch('/^https?:/', $path)) {
|
||||
$ctxArray = [
|
||||
'http' => [
|
||||
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
|
||||
@@ -138,7 +156,7 @@ class Drawing extends BaseDrawing
|
||||
],
|
||||
],
|
||||
];
|
||||
if (preg_match('/^https:/', $path) === 1) {
|
||||
if (Preg::isMatch('/^https:/', $path)) {
|
||||
$ctxArray['ssl'] = ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT];
|
||||
}
|
||||
$ctx = stream_context_create($ctxArray);
|
||||
@@ -157,15 +175,6 @@ class Drawing extends BaseDrawing
|
||||
}
|
||||
}
|
||||
}
|
||||
} elseif ($zip instanceof ZipArchive) {
|
||||
$zipPath = explode('#', $path)[1];
|
||||
$locate = @$zip->locateName($zipPath);
|
||||
if ($locate !== false) {
|
||||
if ($this->isImage($path)) {
|
||||
$this->path = $path;
|
||||
$this->setSizesAndType($path);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$exists = @file_exists($path);
|
||||
if ($exists !== false && $this->isImage($path)) {
|
||||
|
||||
@@ -1724,7 +1724,7 @@ class Html extends BaseWriter
|
||||
}
|
||||
|
||||
// convert to PCDATA
|
||||
$result = htmlspecialchars($value, Settings::htmlEntityFlags());
|
||||
$result = htmlspecialchars($value, ENT_NOQUOTES);
|
||||
|
||||
// color span tag
|
||||
if ($color !== null) {
|
||||
|
||||
+36
@@ -2,6 +2,37 @@
|
||||
|
||||
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||
|
||||
## [9.6.36] - 2026-08-11
|
||||
|
||||
### Changed
|
||||
|
||||
* Use `spl_object_id()` instead of `spl_object_hash()` (which will be deprecated in PHP 8.6)
|
||||
* Use the error suppression operator (`@`) when calling `DeepCopy\DeepCopy::copy()` because it uses `spl_object_hash()` (which will be deprecated in PHP 8.6)
|
||||
|
||||
## [9.6.35] - 2026-07-06
|
||||
|
||||
### Changed
|
||||
|
||||
* [#6797](https://github.com/sebastianbergmann/phpunit/issues/6797): Adapt code generated for test double of interface with constructor for PHP 8.6
|
||||
|
||||
## [9.6.34] - 2026-01-27
|
||||
|
||||
### Fixed
|
||||
|
||||
* Regression introduced in PHPUnit 9.6.33
|
||||
|
||||
## [9.6.33] - 2026-01-27
|
||||
|
||||
### Changed
|
||||
|
||||
* To prevent Poisoned Pipeline Execution (PPE) attacks using prepared `.coverage` files in pull requests, a PHPT test will no longer be run if the temporary file for writing code coverage information already exists before the test runs
|
||||
|
||||
## [9.6.32] - 2026-01-24
|
||||
|
||||
### Changed
|
||||
|
||||
* `PHPUnit\Framework\MockObject` exceptions are now subtypes of `PHPUnit\Exception`
|
||||
|
||||
## [9.6.31] - 2025-12-06
|
||||
|
||||
* No changes; `phpunit.phar` rebuilt with PHP 8.4 to work around PHP-Scoper issue [#1139](https://github.com/humbug/php-scoper/issues/1139)
|
||||
@@ -212,6 +243,11 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
|
||||
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
|
||||
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
|
||||
|
||||
[9.6.36]: https://github.com/sebastianbergmann/phpunit/compare/9.6.35...9.6.36
|
||||
[9.6.35]: https://github.com/sebastianbergmann/phpunit/compare/9.6.34...9.6.35
|
||||
[9.6.34]: https://github.com/sebastianbergmann/phpunit/compare/9.6.33...9.6.34
|
||||
[9.6.33]: https://github.com/sebastianbergmann/phpunit/compare/9.6.32...9.6.33
|
||||
[9.6.32]: https://github.com/sebastianbergmann/phpunit/compare/9.6.31...9.6.32
|
||||
[9.6.31]: https://github.com/sebastianbergmann/phpunit/compare/9.6.30...9.6.31
|
||||
[9.6.30]: https://github.com/sebastianbergmann/phpunit/compare/9.6.29...9.6.30
|
||||
[9.6.29]: https://github.com/sebastianbergmann/phpunit/compare/9.6.28...9.6.29
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2001-2025, Sebastian Bergmann
|
||||
Copyright (c) 2001-2026, Sebastian Bergmann
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
Vendored
+84
-10
@@ -1,12 +1,36 @@
|
||||
# Security Policy
|
||||
|
||||
If you believe you have found a security vulnerability in PHPUnit, please report it to us through coordinated disclosure.
|
||||
## Supported versions
|
||||
|
||||
Security issues are fixed for versions of PHPUnit that are in the Bugfix Support phase.
|
||||
Versions in the Life Support phase only receive changes required for compatibility with new versions of PHP; they do not receive bug or security fixes.
|
||||
Versions that have reached End-of-Life do not receive any changes.
|
||||
|
||||
| Version | Phase | End of Bugfix Support |
|
||||
|------------|----------------|-----------------------|
|
||||
| PHPUnit 13 | Bugfix Support | February 4, 2028 |
|
||||
| PHPUnit 12 | Bugfix Support | February 5, 2027 |
|
||||
| PHPUnit 11 | Life Support | February 6, 2026 |
|
||||
| PHPUnit 10 | Life Support | February 7, 2025 |
|
||||
| PHPUnit 9 | Life Support | February 2, 2024 |
|
||||
| PHPUnit 8 | Life Support | February 3, 2023 |
|
||||
|
||||
PHPUnit 7 and earlier have reached End-of-Life.
|
||||
|
||||
See [Supported Versions of PHPUnit](https://phpunit.de/supported-versions.html) for the authoritative list and for the definitions of the support phases.
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
If you believe you have found a security vulnerability in PHPUnit, please report it to me through coordinated disclosure.
|
||||
Please report vulnerabilities in bundled libraries to their respective repositories.
|
||||
|
||||
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
|
||||
|
||||
Instead, please email `sebastian@phpunit.de`.
|
||||
|
||||
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
|
||||
Use my [PGP key](https://sebastian-bergmann.de/gpg.asc) for encrypted email, for example when your report includes proof-of-concept exploits against third-party systems.
|
||||
|
||||
Please include as much of the information listed below as you can to help me better understand and resolve the issue:
|
||||
|
||||
* The type of issue
|
||||
* Full paths of source file(s) related to the manifestation of the issue
|
||||
@@ -16,18 +40,68 @@ Please include as much of the information listed below as you can to help us bet
|
||||
* Proof-of-concept or exploit code (if possible)
|
||||
* Impact of the issue, including how an attacker might exploit the issue
|
||||
|
||||
This information will help us triage your report more quickly.
|
||||
This information will help me triage your report more quickly.
|
||||
|
||||
## Web Context
|
||||
If you used an AI assistant (LLM, coding agent, or similar) to find, reproduce, or write up the issue, please say so and describe how it was used.
|
||||
This does not disqualify a report, but it changes how I triage it.
|
||||
|
||||
PHPUnit is a framework for writing as well as a command-line tool for running tests. Writing and running tests is a development-time activity. There is no reason why PHPUnit should be installed on a webserver and/or in a production environment.
|
||||
## How reports are handled
|
||||
|
||||
**If you upload PHPUnit to a webserver then your deployment process is broken. On a more general note, if your `vendor` directory is publicly accessible on your webserver then your deployment process is also broken.**
|
||||
I do not operate a bug bounty program.
|
||||
There is no monetary reward for reporting a vulnerability.
|
||||
|
||||
Please note that if you upload PHPUnit to a webserver "bad things" may happen. [You have been warned.](https://thephp.cc/articles/phpunit-a-security-risk?ref=phpunit)
|
||||
I will acknowledge receipt of a vulnerability report within 7 days.
|
||||
|
||||
PHPUnit is developed with a focus on development environments and the command-line. No specific testing or hardening with regard to using PHPUnit in an HTTP or web context or with untrusted input data is performed. PHPUnit might also contain functionality that intentionally exposes internal application data for debugging purposes.
|
||||
A confirmed security issue is handled like any other bug.
|
||||
It is not prioritized ahead of other work.
|
||||
It is fixed when I have the time to fix it.
|
||||
|
||||
I will fix and release before a public advisory is published, but I will not agree to fixed-date embargoes, multi-vendor coordination, or NDAs.
|
||||
I do not optimize for metrics such as the OpenSSF Scorecard.
|
||||
|
||||
Once a vulnerability has been fixed and a release with the fix is available, I publish a public advisory on GitHub.
|
||||
I give credit in the advisory when I know the reporter's GitHub user name.
|
||||
|
||||
## Scope
|
||||
|
||||
PHPUnit is a framework for writing as well as a command-line tool for running tests.
|
||||
Writing and running tests is a development-time activity.
|
||||
PHPUnit is developed with a focus on development environments and the command-line.
|
||||
|
||||
### In scope
|
||||
|
||||
I treat a bug as a security issue when a documented, intended use of PHPUnit, or a reasonable extrapolation of it, causes PHPUnit itself to compromise the confidentiality, integrity, or availability of the environment it runs in. Examples:
|
||||
|
||||
* PHPUnit's console output, logfiles, and reports in any format contain a vulnerability that allows an attacker to extract secrets from or otherwise compromise the environment in which the output is viewed or processed.
|
||||
* A regular test run, against trusted test code, trusted production code, and a trusted configuration, causes PHPUnit to transmit data from the environment to a third party.
|
||||
* A regular test run, against trusted test code, trusted production code, and a trusted configuration, causes PHPUnit to write secrets from the environment to its own output, log files, or reports.
|
||||
|
||||
### Not in scope
|
||||
|
||||
No specific testing or hardening with regard to using PHPUnit in an HTTP or web context, in a CI/CD context, or with untrusted input data is performed.
|
||||
The following classes of issue are explicitly not in scope.
|
||||
|
||||
#### CI/CD Pipelines
|
||||
|
||||
Running tests in a CI/CD pipeline is a legitimate and common use of PHPUnit.
|
||||
However, a CI/CD pipeline is not a sandbox, and PHPUnit is not designed to defend one.
|
||||
Executing test code, production code, or a configuration for PHPUnit or PHP that has not been reviewed is equivalent to executing arbitrary code on the infrastructure that hosts the pipeline.
|
||||
This class of risk is documented as [CICD-SEC-04: Poisoned Pipeline Execution](https://owasp.org/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution) in the OWASP Top 10 CI/CD Security Risks.
|
||||
|
||||
**If your CI/CD pipeline automatically runs PHPUnit against a configuration for PHPUnit or PHP, test code, and/or production code from third parties without those changes having been reviewed first, then your development process is broken.**
|
||||
|
||||
Running code from a pull request on your infrastructure is, by definition, remote code execution.
|
||||
|
||||
Protecting the pipeline is the responsibility of the operator of the pipeline:
|
||||
limit which events trigger workflows, require review before workflows run on contributions from outside collaborators, isolate jobs that run untrusted code, and do not expose secrets to such jobs.
|
||||
|
||||
#### Webserver
|
||||
|
||||
There is no reason why PHPUnit should be installed on a webserver and/or in a production environment.
|
||||
|
||||
**If you upload PHPUnit to a webserver then your deployment process is broken.**
|
||||
|
||||
On a more general note, if your `vendor` directory is publicly accessible on your webserver then your deployment process is also broken.
|
||||
|
||||
PHPUnit might contain functionality that intentionally exposes internal application data for debugging purposes.
|
||||
If PHPUnit is used in a web application, the application developer is responsible for filtering inputs or escaping outputs as necessary and for verifying that the used functionality is safe for use within the intended context.
|
||||
|
||||
Vulnerabilities specific to the use outside a development context will be fixed as applicable, provided that the fix does not have an averse effect on the primary use case for development purposes.
|
||||
|
||||
Vendored
+20
-3
@@ -16,6 +16,12 @@
|
||||
"role": "lead"
|
||||
}
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"type": "other",
|
||||
"url": "https://phpunit.de/sponsoring.html"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy"
|
||||
@@ -24,10 +30,10 @@
|
||||
"require": {
|
||||
"php": ">=7.3",
|
||||
"ext-dom": "*",
|
||||
"ext-filter": "*",
|
||||
"ext-json": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-xml": "*",
|
||||
"ext-xmlwriter": "*",
|
||||
"doctrine/instantiator": "^1.5.0 || ^2",
|
||||
"myclabs/deep-copy": "^1.13.4",
|
||||
@@ -40,10 +46,10 @@
|
||||
"phpunit/php-timer": "^5.0.3",
|
||||
"sebastian/cli-parser": "^1.0.2",
|
||||
"sebastian/code-unit": "^1.0.8",
|
||||
"sebastian/comparator": "^4.0.9",
|
||||
"sebastian/comparator": "^4.0.10",
|
||||
"sebastian/diff": "^4.0.6",
|
||||
"sebastian/environment": "^5.1.5",
|
||||
"sebastian/exporter": "^4.0.8",
|
||||
"sebastian/exporter": "^4.0.9",
|
||||
"sebastian/global-state": "^5.0.8",
|
||||
"sebastian/object-enumerator": "^4.0.4",
|
||||
"sebastian/resource-operations": "^3.0.4",
|
||||
@@ -54,6 +60,17 @@
|
||||
"platform": {
|
||||
"php": "7.3.0"
|
||||
},
|
||||
"policy": {
|
||||
"malware": {
|
||||
"audit": "fail"
|
||||
},
|
||||
"security-advisory": {
|
||||
"audit": "fail"
|
||||
},
|
||||
"abandoned": {
|
||||
"audit": "fail"
|
||||
}
|
||||
},
|
||||
"classmap-authoritative": true,
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true
|
||||
|
||||
+26
-31
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "2bf92980419fc7b753cc15c2cf7d7e4f",
|
||||
"content-hash": "954916c0d1b2f7a15e01747dfcf52065",
|
||||
"packages": [
|
||||
{
|
||||
"name": "doctrine/instantiator",
|
||||
@@ -138,16 +138,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v4.19.4",
|
||||
"version": "v4.19.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2"
|
||||
"reference": "51bd93cc741b7fc3d63d20b6bdcd99fdaa359837"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2",
|
||||
"reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/51bd93cc741b7fc3d63d20b6bdcd99fdaa359837",
|
||||
"reference": "51bd93cc741b7fc3d63d20b6bdcd99fdaa359837",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -162,11 +162,6 @@
|
||||
"bin/php-parse"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.9-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PhpParser\\": "lib/PhpParser"
|
||||
@@ -188,9 +183,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.5"
|
||||
},
|
||||
"time": "2024-09-29T15:01:53+00:00"
|
||||
"time": "2025-12-06T11:45:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
@@ -798,16 +793,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/comparator",
|
||||
"version": "4.0.9",
|
||||
"version": "4.0.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/comparator.git",
|
||||
"reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5"
|
||||
"reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
|
||||
"reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e4df00b9b3571187db2831ae9aada2c6efbd715d",
|
||||
"reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -860,7 +855,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/comparator/issues",
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9"
|
||||
"source": "https://github.com/sebastianbergmann/comparator/tree/4.0.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -880,7 +875,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-08-10T06:51:50+00:00"
|
||||
"time": "2026-01-24T09:22:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/complexity",
|
||||
@@ -1070,16 +1065,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/exporter",
|
||||
"version": "4.0.8",
|
||||
"version": "4.0.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/exporter.git",
|
||||
"reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c"
|
||||
"reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/14c6ba52f95a36c3d27c835d65efc7123c446e8c",
|
||||
"reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/4352c1a3df741a7ba9e61af6fed51d1fee41cbf7",
|
||||
"reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1135,7 +1130,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.8"
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.9"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1155,7 +1150,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-09-24T06:03:27+00:00"
|
||||
"time": "2026-08-11T04:55:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/global-state",
|
||||
@@ -1404,16 +1399,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/recursion-context",
|
||||
"version": "4.0.6",
|
||||
"version": "4.0.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/recursion-context.git",
|
||||
"reference": "539c6691e0623af6dc6f9c20384c120f963465a0"
|
||||
"reference": "c85be6922b7fd365942b986b9a50397d65407611"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0",
|
||||
"reference": "539c6691e0623af6dc6f9c20384c120f963465a0",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/c85be6922b7fd365942b986b9a50397d65407611",
|
||||
"reference": "c85be6922b7fd365942b986b9a50397d65407611",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1455,7 +1450,7 @@
|
||||
"homepage": "https://github.com/sebastianbergmann/recursion-context",
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/recursion-context/issues",
|
||||
"source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6"
|
||||
"source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1475,7 +1470,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-08-10T06:57:39+00:00"
|
||||
"time": "2026-08-11T05:25:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/resource-operations",
|
||||
@@ -1700,10 +1695,10 @@
|
||||
"platform": {
|
||||
"php": ">=7.3",
|
||||
"ext-dom": "*",
|
||||
"ext-filter": "*",
|
||||
"ext-json": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-xml": "*",
|
||||
"ext-xmlwriter": "*"
|
||||
},
|
||||
"platform-dev": {},
|
||||
|
||||
Vendored
+1
-1
@@ -38,7 +38,7 @@ if (version_compare('7.3.0', PHP_VERSION, '>')) {
|
||||
die(1);
|
||||
}
|
||||
|
||||
$requiredExtensions = ['dom', 'json', 'libxml', 'mbstring', 'tokenizer', 'xml', 'xmlwriter'];
|
||||
$requiredExtensions = ['dom', 'filter', 'json', 'libxml', 'mbstring', 'tokenizer', 'xmlwriter'];
|
||||
|
||||
$unavailableExtensions = array_filter(
|
||||
$requiredExtensions,
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PHPUnit;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Exception extends Throwable
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework;
|
||||
use const PHP_VERSION_ID;
|
||||
use function array_keys;
|
||||
use function get_class;
|
||||
use function spl_object_hash;
|
||||
use function spl_object_id;
|
||||
use PHPUnit\Util\Filter;
|
||||
use Throwable;
|
||||
use WeakReference;
|
||||
@@ -120,7 +120,7 @@ final class ExceptionWrapper extends Exception
|
||||
if (PHP_VERSION_ID < 70400) {
|
||||
static $originalExceptions;
|
||||
|
||||
$instanceId = spl_object_hash($this);
|
||||
$instanceId = spl_object_id($this);
|
||||
|
||||
if ($exceptionToStore) {
|
||||
$originalExceptions[$instanceId] = $exceptionToStore;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface IncompleteTest extends Throwable
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace PHPUnit\Framework\MockObject\Builder;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Identity
|
||||
{
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework\MockObject\Builder;
|
||||
use PHPUnit\Framework\Constraint\Constraint;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface MethodNameMatch extends ParametersMatch
|
||||
{
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
namespace PHPUnit\Framework\MockObject\Builder;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface ParametersMatch extends Stub
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework\MockObject\Builder;
|
||||
use PHPUnit\Framework\MockObject\Stub\Stub as BaseStub;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Stub extends Identity
|
||||
{
|
||||
|
||||
@@ -9,11 +9,9 @@
|
||||
*/
|
||||
namespace PHPUnit\Framework\MockObject;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Exception extends Throwable
|
||||
interface Exception extends \PHPUnit\Exception
|
||||
{
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ use function preg_replace;
|
||||
use function sprintf;
|
||||
use function strlen;
|
||||
use function strpos;
|
||||
use function strtolower;
|
||||
use function substr;
|
||||
use function substr_count;
|
||||
use function trim;
|
||||
@@ -188,7 +189,7 @@ final class MockMethod
|
||||
{
|
||||
if ($this->static) {
|
||||
$templateFile = 'mocked_static_method.tpl';
|
||||
} elseif ($this->returnType->isNever() || $this->returnType->isVoid()) {
|
||||
} elseif ($this->returnType->isNever() || $this->returnType->isVoid() || $this->mustNotReturnValue()) {
|
||||
$templateFile = sprintf(
|
||||
'%s_method_never_or_void.tpl',
|
||||
$this->callOriginalMethod ? 'proxied' : 'mocked',
|
||||
@@ -263,6 +264,16 @@ final class MockMethod
|
||||
return self::$templates[$filename];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://wiki.php.net/rfc/deprecate-return-value-from-construct
|
||||
*/
|
||||
private function mustNotReturnValue(): bool
|
||||
{
|
||||
$methodName = strtolower($this->methodName);
|
||||
|
||||
return $methodName === '__construct' || $methodName === '__destruct';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the parameters of a function or method.
|
||||
*
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace PHPUnit\Framework\MockObject;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface MockType
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ use PHPUnit\Framework\MockObject\Invocation;
|
||||
use PHPUnit\Framework\SelfDescribing;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Stub extends SelfDescribing
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework\MockObject;
|
||||
use PHPUnit\Framework\ExpectationFailedException;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Verifiable
|
||||
{
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
namespace PHPUnit\Framework;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Reorderable
|
||||
{
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PHPUnit\Framework;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface SkippedTest extends Throwable
|
||||
{
|
||||
|
||||
+2
-1
@@ -2208,7 +2208,8 @@ abstract class TestCase extends Assert implements Reorderable, SelfDescribing, T
|
||||
$deepCopy = new DeepCopy;
|
||||
$deepCopy->skipUncloneable(false);
|
||||
|
||||
$this->dependencyInput[$dependencyTarget] = $deepCopy->copy($passed[$dependencyTarget]['result']);
|
||||
// The diagnostics are suppressed because myclabs/deep-copy uses spl_object_hash(), which is deprecated since PHP 8.6
|
||||
$this->dependencyInput[$dependencyTarget] = @$deepCopy->copy($passed[$dependencyTarget]['result']);
|
||||
} elseif ($dependency->useShallowClone()) {
|
||||
$this->dependencyInput[$dependencyTarget] = clone $passed[$dependencyTarget]['result'];
|
||||
} else {
|
||||
|
||||
@@ -16,8 +16,8 @@ use function in_array;
|
||||
*/
|
||||
final class ExcludeGroupFilterIterator extends GroupFilterIterator
|
||||
{
|
||||
protected function doAccept(string $hash): bool
|
||||
protected function doAccept(int $id): bool
|
||||
{
|
||||
return !in_array($hash, $this->groupTests, true);
|
||||
return !in_array($id, $this->groupTests, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace PHPUnit\Runner\Filter;
|
||||
use function array_map;
|
||||
use function array_merge;
|
||||
use function in_array;
|
||||
use function spl_object_hash;
|
||||
use function spl_object_id;
|
||||
use PHPUnit\Framework\TestSuite;
|
||||
use RecursiveFilterIterator;
|
||||
use RecursiveIterator;
|
||||
@@ -23,7 +23,7 @@ use RecursiveIterator;
|
||||
abstract class GroupFilterIterator extends RecursiveFilterIterator
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @var int[]
|
||||
*/
|
||||
protected $groupTests = [];
|
||||
|
||||
@@ -33,12 +33,12 @@ abstract class GroupFilterIterator extends RecursiveFilterIterator
|
||||
|
||||
foreach ($suite->getGroupDetails() as $group => $tests) {
|
||||
if (in_array((string) $group, $groups, true)) {
|
||||
$testHashes = array_map(
|
||||
'spl_object_hash',
|
||||
$testIds = array_map(
|
||||
'spl_object_id',
|
||||
$tests,
|
||||
);
|
||||
|
||||
$this->groupTests = array_merge($this->groupTests, $testHashes);
|
||||
$this->groupTests = array_merge($this->groupTests, $testIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,8 +51,8 @@ abstract class GroupFilterIterator extends RecursiveFilterIterator
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->doAccept(spl_object_hash($test));
|
||||
return $this->doAccept(spl_object_id($test));
|
||||
}
|
||||
|
||||
abstract protected function doAccept(string $hash);
|
||||
abstract protected function doAccept(int $id);
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ use function in_array;
|
||||
*/
|
||||
final class IncludeGroupFilterIterator extends GroupFilterIterator
|
||||
{
|
||||
protected function doAccept(string $hash): bool
|
||||
protected function doAccept(int $id): bool
|
||||
{
|
||||
return in_array($hash, $this->groupTests, true);
|
||||
return in_array($id, $this->groupTests, true);
|
||||
}
|
||||
}
|
||||
|
||||
+47
-10
@@ -19,6 +19,7 @@ use function dirname;
|
||||
use function explode;
|
||||
use function extension_loaded;
|
||||
use function file;
|
||||
use function file_exists;
|
||||
use function file_get_contents;
|
||||
use function file_put_contents;
|
||||
use function is_array;
|
||||
@@ -89,17 +90,13 @@ final class PhptTestCase implements Reorderable, SelfDescribing, Test
|
||||
*/
|
||||
public function __construct(string $filename, ?AbstractPhpProcess $phpUtil = null)
|
||||
{
|
||||
if (!is_file($filename)) {
|
||||
throw new Exception(
|
||||
sprintf(
|
||||
'File "%s" does not exist.',
|
||||
$filename,
|
||||
),
|
||||
);
|
||||
}
|
||||
$this->ensureFileExists($filename);
|
||||
|
||||
$this->filename = $filename;
|
||||
$this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
|
||||
|
||||
$this->ensureCoverageFileDoesNotExist();
|
||||
|
||||
$this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -657,7 +654,14 @@ final class PhptTestCase implements Reorderable, SelfDescribing, Test
|
||||
$buffer = @file_get_contents($files['coverage']);
|
||||
|
||||
if ($buffer !== false) {
|
||||
$coverage = @unserialize($buffer);
|
||||
$coverage = @unserialize(
|
||||
$buffer,
|
||||
[
|
||||
'allowed_classes' => [
|
||||
RawCodeCoverageData::class,
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
if ($coverage === false) {
|
||||
$coverage = RawCodeCoverageData::fromXdebugWithoutPathCoverage([]);
|
||||
@@ -862,4 +866,37 @@ final class PhptTestCase implements Reorderable, SelfDescribing, Test
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
private function ensureFileExists(string $filename): void
|
||||
{
|
||||
if (!is_file($filename)) {
|
||||
throw new Exception(
|
||||
sprintf(
|
||||
'File "%s" does not exist.',
|
||||
$filename,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
private function ensureCoverageFileDoesNotExist(): void
|
||||
{
|
||||
$files = $this->getCoverageFiles();
|
||||
|
||||
if (file_exists($files['coverage'])) {
|
||||
throw new Exception(
|
||||
sprintf(
|
||||
'File %s exists, PHPT test %s will not be executed',
|
||||
$files['coverage'],
|
||||
$this->filename,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
namespace PHPUnit\Runner;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface TestResultCache
|
||||
{
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ final class Version
|
||||
}
|
||||
|
||||
if (self::$version === '') {
|
||||
self::$version = (new VersionId('9.6.31', dirname(__DIR__, 2)))->getVersion();
|
||||
self::$version = (new VersionId('9.6.36', dirname(__DIR__, 2)))->getVersion();
|
||||
|
||||
assert(!empty(self::$version));
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ namespace PHPUnit\TextUI\XmlConfiguration;
|
||||
use DOMDocument;
|
||||
|
||||
/**
|
||||
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
||||
* @internal This interface is not covered by the backward compatibility promise for PHPUnit
|
||||
*/
|
||||
interface Migration
|
||||
{
|
||||
|
||||
+5
-5
@@ -86,14 +86,14 @@ final class DocBlock
|
||||
/**
|
||||
* @var null|array<string, mixed>
|
||||
*
|
||||
* @psalm-var null|(array{
|
||||
* @psalm-var null|(array<
|
||||
* string,
|
||||
* array<int|string, string>|array{constraint: string}|array{version: string, operator: string}|string
|
||||
* >&array{
|
||||
* __OFFSET: array<string, int>&array{__FILE: string},
|
||||
* setting?: array<string, string>,
|
||||
* extension_versions?: array<string, array{version: string, operator: string}>
|
||||
* }&array<
|
||||
* string,
|
||||
* string|array{version: string, operator: string}|array{constraint: string}|array<int|string, string>
|
||||
* >)
|
||||
* })
|
||||
*/
|
||||
private $parsedRequirements;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user