From: Christoph M. Becker Date: Sat, 2 Nov 2019 10:39:31 +0000 (+0100) Subject: Add ext/phar arginfo stubs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d067d811d8323d5293a43fb48d546421e082ecb;p=php Add ext/phar arginfo stubs --- diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 9f8ccd9420..5eadcc91fa 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -19,6 +19,7 @@ #include "phar_internal.h" #include "func_interceptors.h" +#include "phar_object_arginfo.h" static zend_class_entry *phar_ce_archive; static zend_class_entry *phar_ce_data; @@ -5127,312 +5128,145 @@ PHP_METHOD(PharFileInfo, decompress) /* }}} */ /* {{{ phar methods */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar___construct, 0, 0, 1) - ZEND_ARG_INFO(0, filename) - ZEND_ARG_INFO(0, flags) - ZEND_ARG_INFO(0, alias) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_createDS, 0, 0, 0) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, webindex) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_cancompress, 0, 0, 0) - ZEND_ARG_INFO(0, method) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_isvalidpharfilename, 0, 0, 1) - ZEND_ARG_INFO(0, filename) - ZEND_ARG_INFO(0, executable) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_loadPhar, 0, 0, 1) - ZEND_ARG_INFO(0, filename) - ZEND_ARG_INFO(0, alias) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_mapPhar, 0, 0, 0) - ZEND_ARG_INFO(0, alias) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_mount, 0, 0, 2) - ZEND_ARG_INFO(0, inphar) - ZEND_ARG_INFO(0, externalfile) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_mungServer, 0, 0, 1) - ZEND_ARG_INFO(0, munglist) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_webPhar, 0, 0, 0) - ZEND_ARG_INFO(0, alias) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, f404) - ZEND_ARG_INFO(0, mimetypes) - ZEND_ARG_INFO(0, rewrites) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_running, 0, 0, 0) - ZEND_ARG_INFO(0, retphar) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_ua, 0, 0, 1) - ZEND_ARG_INFO(0, archive) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_build, 0, 0, 1) - ZEND_ARG_INFO(0, iterator) - ZEND_ARG_INFO(0, base_directory) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_conv, 0, 0, 0) - ZEND_ARG_INFO(0, format) - ZEND_ARG_INFO(0, compression_type) - ZEND_ARG_INFO(0, file_ext) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_comps, 0, 0, 1) - ZEND_ARG_INFO(0, compression_type) - ZEND_ARG_INFO(0, file_ext) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_decomp, 0, 0, 0) - ZEND_ARG_INFO(0, file_ext) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_comp, 0, 0, 1) - ZEND_ARG_INFO(0, compression_type) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_compo, 0, 0, 0) - ZEND_ARG_INFO(0, compression_type) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_copy, 0, 0, 2) - ZEND_ARG_INFO(0, newfile) - ZEND_ARG_INFO(0, oldfile) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_delete, 0, 0, 1) - ZEND_ARG_INFO(0, entry) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_fromdir, 0, 0, 1) - ZEND_ARG_INFO(0, base_dir) - ZEND_ARG_INFO(0, regex) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_offsetExists, 0, 0, 1) - ZEND_ARG_INFO(0, entry) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_offsetSet, 0, 0, 2) - ZEND_ARG_INFO(0, entry) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_setAlias, 0, 0, 1) - ZEND_ARG_INFO(0, alias) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_setMetadata, 0, 0, 1) - ZEND_ARG_INFO(0, metadata) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_setSigAlgo, 0, 0, 1) - ZEND_ARG_INFO(0, algorithm) - ZEND_ARG_INFO(0, privatekey) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_setStub, 0, 0, 1) - ZEND_ARG_INFO(0, newstub) - ZEND_ARG_INFO(0, maxlen) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_emptydir, 0, 0, 0) - ZEND_ARG_INFO(0, dirname) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_extract, 0, 0, 1) - ZEND_ARG_INFO(0, pathto) - ZEND_ARG_INFO(0, files) - ZEND_ARG_INFO(0, overwrite) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_addfile, 0, 0, 1) - ZEND_ARG_INFO(0, filename) - ZEND_ARG_INFO(0, localname) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_fromstring, 0, 0, 1) - ZEND_ARG_INFO(0, localname) - ZEND_ARG_INFO(0, contents) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_isff, 0, 0, 1) - ZEND_ARG_INFO(0, fileformat) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_phar__void, 0) -ZEND_END_ARG_INFO() - static const zend_function_entry php_archive_methods[] = { - PHP_ME(Phar, __construct, arginfo_phar___construct, ZEND_ACC_PUBLIC) - PHP_ME(Phar, __destruct, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addEmptyDir, arginfo_phar_emptydir, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addFile, arginfo_phar_addfile, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addFromString, arginfo_phar_fromstring, ZEND_ACC_PUBLIC) - PHP_ME(Phar, buildFromDirectory, arginfo_phar_fromdir, ZEND_ACC_PUBLIC) - PHP_ME(Phar, buildFromIterator, arginfo_phar_build, ZEND_ACC_PUBLIC) - PHP_ME(Phar, compressFiles, arginfo_phar_comp, ZEND_ACC_PUBLIC) - PHP_ME(Phar, decompressFiles, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, compress, arginfo_phar_comps, ZEND_ACC_PUBLIC) - PHP_ME(Phar, decompress, arginfo_phar_decomp, ZEND_ACC_PUBLIC) - PHP_ME(Phar, convertToExecutable, arginfo_phar_conv, ZEND_ACC_PUBLIC) - PHP_ME(Phar, convertToData, arginfo_phar_conv, ZEND_ACC_PUBLIC) - PHP_ME(Phar, copy, arginfo_phar_copy, ZEND_ACC_PUBLIC) - PHP_ME(Phar, count, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, delete, arginfo_phar_delete, ZEND_ACC_PUBLIC) - PHP_ME(Phar, delMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, extractTo, arginfo_phar_extract, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getAlias, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getPath, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getModified, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getSignature, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getStub, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getVersion, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, hasMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isCompressed, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isFileFormat, arginfo_phar_isff, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isWritable, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetExists, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetGet, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetSet, arginfo_phar_offsetSet, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetUnset, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setAlias, arginfo_phar_setAlias, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setDefaultStub, arginfo_phar_createDS, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setMetadata, arginfo_phar_setMetadata, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setSignatureAlgorithm, arginfo_phar_setSigAlgo, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setStub, arginfo_phar_setStub, ZEND_ACC_PUBLIC) - PHP_ME(Phar, startBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, stopBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) + PHP_ME(Phar, __construct, arginfo_class_Phar___construct, ZEND_ACC_PUBLIC) + PHP_ME(Phar, __destruct, arginfo_class_Phar___destruct, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addEmptyDir, arginfo_class_Phar_addEmptyDir, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addFile, arginfo_class_Phar_addFile, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addFromString, arginfo_class_Phar_addFromString, ZEND_ACC_PUBLIC) + PHP_ME(Phar, buildFromDirectory, arginfo_class_Phar_buildFromDirectory, ZEND_ACC_PUBLIC) + PHP_ME(Phar, buildFromIterator, arginfo_class_Phar_buildFromIterator, ZEND_ACC_PUBLIC) + PHP_ME(Phar, compressFiles, arginfo_class_Phar_compressFiles, ZEND_ACC_PUBLIC) + PHP_ME(Phar, decompressFiles, arginfo_class_Phar_decompressFiles, ZEND_ACC_PUBLIC) + PHP_ME(Phar, compress, arginfo_class_Phar_compress, ZEND_ACC_PUBLIC) + PHP_ME(Phar, decompress, arginfo_class_Phar_decompress, ZEND_ACC_PUBLIC) + PHP_ME(Phar, convertToExecutable, arginfo_class_Phar_convertToExecutable, ZEND_ACC_PUBLIC) + PHP_ME(Phar, convertToData, arginfo_class_Phar_convertToData, ZEND_ACC_PUBLIC) + PHP_ME(Phar, copy, arginfo_class_Phar_copy, ZEND_ACC_PUBLIC) + PHP_ME(Phar, count, arginfo_class_Phar_count, ZEND_ACC_PUBLIC) + PHP_ME(Phar, delete, arginfo_class_Phar_delete, ZEND_ACC_PUBLIC) + PHP_ME(Phar, delMetadata, arginfo_class_Phar_delMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, extractTo, arginfo_class_Phar_extractTo, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getAlias, arginfo_class_Phar_getAlias, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getPath, arginfo_class_Phar_getPath, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getMetadata, arginfo_class_Phar_getMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getModified, arginfo_class_Phar_getModified, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getSignature, arginfo_class_Phar_getSignature, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getStub, arginfo_class_Phar_getStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getVersion, arginfo_class_Phar_getVersion, ZEND_ACC_PUBLIC) + PHP_ME(Phar, hasMetadata, arginfo_class_Phar_hasMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isBuffering, arginfo_class_Phar_isBuffering, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isCompressed, arginfo_class_Phar_isCompressed, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isFileFormat, arginfo_class_Phar_isFileFormat, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isWritable, arginfo_class_Phar_isWritable, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetExists, arginfo_class_Phar_offsetExists, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetGet, arginfo_class_Phar_offsetGet, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetSet, arginfo_class_Phar_offsetSet, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetUnset, arginfo_class_Phar_offsetUnset, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setAlias, arginfo_class_Phar_setAlias, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setDefaultStub, arginfo_class_Phar_setDefaultStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setMetadata, arginfo_class_Phar_setMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setSignatureAlgorithm, arginfo_class_Phar_setSignatureAlgorithm, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setStub, arginfo_class_Phar_setStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, startBuffering, arginfo_class_Phar_startBuffering, ZEND_ACC_PUBLIC) + PHP_ME(Phar, stopBuffering, arginfo_class_Phar_stopBuffering, ZEND_ACC_PUBLIC) /* static member functions */ - PHP_ME(Phar, apiVersion, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, canCompress, arginfo_phar_cancompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, canWrite, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, createDefaultStub, arginfo_phar_createDS, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, getSupportedCompression,arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, getSupportedSignatures,arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, interceptFileFuncs, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, isValidPharFilename, arginfo_phar_isvalidpharfilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, loadPhar, arginfo_phar_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mapPhar, arginfo_phar_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, running, arginfo_phar_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mount, arginfo_phar_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mungServer, arginfo_phar_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, unlinkArchive, arginfo_phar_ua, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, webPhar, arginfo_phar_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, apiVersion, arginfo_class_Phar_apiVersion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, canCompress, arginfo_class_Phar_canCompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, canWrite, arginfo_class_Phar_canWrite, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, createDefaultStub, arginfo_class_Phar_createDefaultStub, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, getSupportedCompression,arginfo_class_Phar_getSupportedCompression, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, getSupportedSignatures,arginfo_class_Phar_getSupportedSignatures, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, interceptFileFuncs, arginfo_class_Phar_interceptFileFuncs, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, isValidPharFilename, arginfo_class_Phar_isValidPharFilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, loadPhar, arginfo_class_Phar_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mapPhar, arginfo_class_Phar_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, running, arginfo_class_Phar_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mount, arginfo_class_Phar_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mungServer, arginfo_class_Phar_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, unlinkArchive, arginfo_class_Phar_unlinkArchive, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, webPhar, arginfo_class_Phar_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) PHP_FE_END }; - -ZEND_BEGIN_ARG_INFO_EX(arginfo_data___construct, 0, 0, 1) - ZEND_ARG_INFO(0, filename) - ZEND_ARG_INFO(0, flags) - ZEND_ARG_INFO(0, alias) - ZEND_ARG_INFO(0, fileformat) -ZEND_END_ARG_INFO() - static const zend_function_entry php_data_methods[] = { - PHP_ME(Phar, __construct, arginfo_data___construct, ZEND_ACC_PUBLIC) - PHP_ME(Phar, __destruct, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addEmptyDir, arginfo_phar_emptydir, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addFile, arginfo_phar_addfile, ZEND_ACC_PUBLIC) - PHP_ME(Phar, addFromString, arginfo_phar_fromstring, ZEND_ACC_PUBLIC) - PHP_ME(Phar, buildFromDirectory, arginfo_phar_fromdir, ZEND_ACC_PUBLIC) - PHP_ME(Phar, buildFromIterator, arginfo_phar_build, ZEND_ACC_PUBLIC) - PHP_ME(Phar, compressFiles, arginfo_phar_comp, ZEND_ACC_PUBLIC) - PHP_ME(Phar, decompressFiles, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, compress, arginfo_phar_comps, ZEND_ACC_PUBLIC) - PHP_ME(Phar, decompress, arginfo_phar_decomp, ZEND_ACC_PUBLIC) - PHP_ME(Phar, convertToExecutable, arginfo_phar_conv, ZEND_ACC_PUBLIC) - PHP_ME(Phar, convertToData, arginfo_phar_conv, ZEND_ACC_PUBLIC) - PHP_ME(Phar, copy, arginfo_phar_copy, ZEND_ACC_PUBLIC) - PHP_ME(Phar, count, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, delete, arginfo_phar_delete, ZEND_ACC_PUBLIC) - PHP_ME(Phar, delMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, extractTo, arginfo_phar_extract, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getAlias, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getPath, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getModified, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getSignature, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getStub, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, getVersion, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, hasMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isCompressed, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isFileFormat, arginfo_phar_isff, ZEND_ACC_PUBLIC) - PHP_ME(Phar, isWritable, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetExists, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetGet, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetSet, arginfo_phar_offsetSet, ZEND_ACC_PUBLIC) - PHP_ME(Phar, offsetUnset, arginfo_phar_offsetExists, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setAlias, arginfo_phar_setAlias, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setDefaultStub, arginfo_phar_createDS, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setMetadata, arginfo_phar_setMetadata, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setSignatureAlgorithm, arginfo_phar_setSigAlgo, ZEND_ACC_PUBLIC) - PHP_ME(Phar, setStub, arginfo_phar_setStub, ZEND_ACC_PUBLIC) - PHP_ME(Phar, startBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(Phar, stopBuffering, arginfo_phar__void, ZEND_ACC_PUBLIC) + PHP_ME(Phar, __construct, arginfo_class_PharData___construct, ZEND_ACC_PUBLIC) + PHP_ME(Phar, __destruct, arginfo_class_PharData___destruct, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addEmptyDir, arginfo_class_PharData_addEmptyDir, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addFile, arginfo_class_PharData_addFile, ZEND_ACC_PUBLIC) + PHP_ME(Phar, addFromString, arginfo_class_PharData_addFromString, ZEND_ACC_PUBLIC) + PHP_ME(Phar, buildFromDirectory, arginfo_class_PharData_buildFromDirectory, ZEND_ACC_PUBLIC) + PHP_ME(Phar, buildFromIterator, arginfo_class_PharData_buildFromIterator, ZEND_ACC_PUBLIC) + PHP_ME(Phar, compressFiles, arginfo_class_PharData_compressFiles, ZEND_ACC_PUBLIC) + PHP_ME(Phar, decompressFiles, arginfo_class_PharData_decompressFiles, ZEND_ACC_PUBLIC) + PHP_ME(Phar, compress, arginfo_class_PharData_compress, ZEND_ACC_PUBLIC) + PHP_ME(Phar, decompress, arginfo_class_PharData_decompress, ZEND_ACC_PUBLIC) + PHP_ME(Phar, convertToExecutable, arginfo_class_PharData_convertToExecutable, ZEND_ACC_PUBLIC) + PHP_ME(Phar, convertToData, arginfo_class_PharData_convertToData, ZEND_ACC_PUBLIC) + PHP_ME(Phar, copy, arginfo_class_PharData_copy, ZEND_ACC_PUBLIC) + PHP_ME(Phar, count, arginfo_class_PharData_count, ZEND_ACC_PUBLIC) + PHP_ME(Phar, delete, arginfo_class_PharData_delete, ZEND_ACC_PUBLIC) + PHP_ME(Phar, delMetadata, arginfo_class_PharData_delMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, extractTo, arginfo_class_PharData_extractTo, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getAlias, arginfo_class_PharData_getAlias, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getPath, arginfo_class_PharData_getPath, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getMetadata, arginfo_class_PharData_getMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getModified, arginfo_class_PharData_getModified, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getSignature, arginfo_class_PharData_getSignature, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getStub, arginfo_class_PharData_getStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, getVersion, arginfo_class_PharData_getVersion, ZEND_ACC_PUBLIC) + PHP_ME(Phar, hasMetadata, arginfo_class_PharData_hasMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isBuffering, arginfo_class_PharData_isBuffering, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isCompressed, arginfo_class_PharData_isCompressed, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isFileFormat, arginfo_class_PharData_isFileFormat, ZEND_ACC_PUBLIC) + PHP_ME(Phar, isWritable, arginfo_class_PharData_isWritable, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetExists, arginfo_class_PharData_offsetExists, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetGet, arginfo_class_PharData_offsetGet, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetSet, arginfo_class_PharData_offsetSet, ZEND_ACC_PUBLIC) + PHP_ME(Phar, offsetUnset, arginfo_class_PharData_offsetUnset, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setAlias, arginfo_class_PharData_setAlias, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setDefaultStub, arginfo_class_PharData_setDefaultStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setMetadata, arginfo_class_PharData_setMetadata, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setSignatureAlgorithm, arginfo_class_PharData_setSignatureAlgorithm, ZEND_ACC_PUBLIC) + PHP_ME(Phar, setStub, arginfo_class_PharData_setStub, ZEND_ACC_PUBLIC) + PHP_ME(Phar, startBuffering, arginfo_class_PharData_startBuffering, ZEND_ACC_PUBLIC) + PHP_ME(Phar, stopBuffering, arginfo_class_PharData_stopBuffering, ZEND_ACC_PUBLIC) /* static member functions */ - PHP_ME(Phar, apiVersion, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, canCompress, arginfo_phar_cancompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, canWrite, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, createDefaultStub, arginfo_phar_createDS, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, getSupportedCompression,arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, getSupportedSignatures,arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, interceptFileFuncs, arginfo_phar__void, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, isValidPharFilename, arginfo_phar_isvalidpharfilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, loadPhar, arginfo_phar_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mapPhar, arginfo_phar_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, running, arginfo_phar_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mount, arginfo_phar_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, mungServer, arginfo_phar_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, unlinkArchive, arginfo_phar_ua, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) - PHP_ME(Phar, webPhar, arginfo_phar_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, apiVersion, arginfo_class_PharData_apiVersion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, canCompress, arginfo_class_PharData_canCompress, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, canWrite, arginfo_class_PharData_canWrite, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, createDefaultStub, arginfo_class_PharData_createDefaultStub, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, getSupportedCompression,arginfo_class_PharData_getSupportedCompression, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, getSupportedSignatures,arginfo_class_PharData_getSupportedSignatures, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, interceptFileFuncs, arginfo_class_PharData_interceptFileFuncs, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, isValidPharFilename, arginfo_class_PharData_isValidPharFilename, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, loadPhar, arginfo_class_PharData_loadPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mapPhar, arginfo_class_PharData_mapPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, running, arginfo_class_PharData_running, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mount, arginfo_class_PharData_mount, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, mungServer, arginfo_class_PharData_mungServer, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, unlinkArchive, arginfo_class_PharData_unlinkArchive, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) + PHP_ME(Phar, webPhar, arginfo_class_PharData_webPhar, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_FINAL) PHP_FE_END }; -ZEND_BEGIN_ARG_INFO_EX(arginfo_entry___construct, 0, 0, 1) - ZEND_ARG_INFO(0, filename) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_entry_chmod, 0, 0, 1) - ZEND_ARG_INFO(0, perms) -ZEND_END_ARG_INFO() - static const zend_function_entry php_entry_methods[] = { - PHP_ME(PharFileInfo, __construct, arginfo_entry___construct, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, __destruct, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, chmod, arginfo_entry_chmod, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, compress, arginfo_phar_comp, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, decompress, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, delMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, getCompressedSize, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, getCRC32, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, getContent, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, getMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, getPharFlags, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, hasMetadata, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, isCompressed, arginfo_phar_compo, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, isCRCChecked, arginfo_phar__void, ZEND_ACC_PUBLIC) - PHP_ME(PharFileInfo, setMetadata, arginfo_phar_setMetadata, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, __construct, arginfo_class_PharFileInfo___construct, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, __destruct, arginfo_class_PharFileInfo___destruct, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, chmod, arginfo_class_PharFileInfo_chmod, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, compress, arginfo_class_PharFileInfo_compress, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, decompress, arginfo_class_PharFileInfo_decompress, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, delMetadata, arginfo_class_PharFileInfo_delMetadata, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, getCompressedSize, arginfo_class_PharFileInfo_getCompressedSize, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, getCRC32, arginfo_class_PharFileInfo_getCRC32, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, getContent, arginfo_class_PharFileInfo_getContent, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, getMetadata, arginfo_class_PharFileInfo_getMetadata, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, getPharFlags, arginfo_class_PharFileInfo_getPharFlags, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, hasMetadata, arginfo_class_PharFileInfo_hasMetadata, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, isCompressed, arginfo_class_PharFileInfo_isCompressed, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, isCRCChecked, arginfo_class_PharFileInfo_isCRCChecked, ZEND_ACC_PUBLIC) + PHP_ME(PharFileInfo, setMetadata, arginfo_class_PharFileInfo_setMetadata, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/phar/phar_object.stub.php b/ext/phar/phar_object.stub.php new file mode 100644 index 0000000000..a1719fddb9 --- /dev/null +++ b/ext/phar/phar_object.stub.php @@ -0,0 +1,422 @@ +