diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22a9735..a011508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,23 +59,23 @@ jobs: # matrix: container: + - ubuntu:24.04 - ubuntu:22.04 - ubuntu:20.04 - debian:bookworm - debian:bullseye - - debian:buster - rockylinux:9 - rockylinux:8 - - centos:centos7 - - fedora:39 - - fedora:38 + - fedora:41 + - fedora:40 + - alpine:3.20 - alpine:3.19 - alpine:3.18 php: - - PHP80 - PHP81 - PHP82 + - PHP83 container: image: ${{ matrix.container }} @@ -92,19 +92,9 @@ jobs: NO_INTERACTION: 1 steps: - # [NOTE] - # actions/checkout@v3 uses nodejs v16 and will be deprecated. - # However, @v4 does not work on centos7 depending on the glibc version, - # so we will continue to use @v3. - # - - name: Checkout source code(other than centos7) - if: matrix.container != 'centos:centos7' + - name: Checkout source code uses: actions/checkout@v4 - - name: Checkout source code(only centos7) - if: matrix.container == 'centos:centos7' - uses: actions/checkout@v3 - # # Set environments from secrets # diff --git a/.github/workflows/phpext_helper.sh b/.github/workflows/phpext_helper.sh index b42774c..ecbfbf9 100755 --- a/.github/workflows/phpext_helper.sh +++ b/.github/workflows/phpext_helper.sh @@ -532,7 +532,7 @@ run_pre_create_package() run_create_package() { if ! RUN_AS_SUBPROCESS="true" /bin/sh -c "${SWITCH_PHP_COMMAND} ${CREATE_PACKAGE_TOOL} ${CREATE_PACKAGE_TOOL_OPT_AUTO} --buildnum ${CI_BUILD_NUMBER} ${CREATE_PACKAGE_TOOL_OPT}"; then - PRNERR "Failed to create debian type packages" + PRNERR "Failed to create ${CI_OSTYPE} packages" return 1 fi return 0 @@ -828,12 +828,42 @@ if [ -n "${OPT_DEVELOPER_FULLNAME}" ]; then CI_DEVELOPER_FULLNAME="${OPT_DEVELOPER_FULLNAME}" elif [ -n "${ENV_DEVELOPER_FULLNAME}" ]; then CI_DEVELOPER_FULLNAME="${ENV_DEVELOPER_FULLNAME}" +else + # [NOTE] + # If this variable is not set in a project that uses configure, + # an attempt will be made to load the value from configure.ac etc. + # + if [ -f "${SRCTOP}/configure.custom" ]; then + CI_DEVELOPER_FULLNAME=$(grep '^[[:space:]]*DEB_NAME[[:space:]]*=' "${SRCTOP}/configure.custom" | sed -e 's|^[[:space:]]*DEB_NAME[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g') + fi + if [ -z "${CI_DEVELOPER_FULLNAME}" ] && [ -f "${SRCTOP}/config.m4" ]; then + CI_DEVELOPER_FULLNAME=$(grep '^[[:space:]]*custom_dev_name[[:space:]]*=' "${SRCTOP}/config.m4" | grep -v 'DEB_NAME' | sed -e 's|^[[:space:]]*custom_dev_name[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g' -e 's|"||g') + fi + if [ -z "${CI_DEVELOPER_FULLNAME}" ]; then + PRNWARN "DEVELOPER_FULLNAME is not set in the options or environment variables. There is no choice but to set the default value." + CI_DEVELOPER_FULLNAME="ANTPICKAX_DEVELOPER" + fi fi if [ -n "${OPT_DEVELOPER_EMAIL}" ]; then CI_DEVELOPER_EMAIL="${OPT_DEVELOPER_EMAIL}" elif [ -n "${ENV_DEVELOPER_EMAIL}" ]; then CI_DEVELOPER_EMAIL="${ENV_DEVELOPER_EMAIL}" +else + # [NOTE] + # If this variable is not set in a project that uses configure, + # an attempt will be made to load the value from configure.ac etc. + # + if [ -f "${SRCTOP}/configure.custom" ]; then + CI_DEVELOPER_EMAIL=$(grep '^[[:space:]]*DEV_EMAIL[[:space:]]*=' "${SRCTOP}/configure.custom" | sed -e 's|^[[:space:]]*DEV_EMAIL[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g') + fi + if [ -z "${CI_DEVELOPER_EMAIL}" ] && [ -f "${SRCTOP}/config.m4" ]; then + CI_DEVELOPER_EMAIL=$(grep '^[[:space:]]*custom_dev_email[[:space:]]*=' "${SRCTOP}/config.m4" | grep -v 'DEV_EMAIL' | sed -e 's|^[[:space:]]*custom_dev_email[[:space:]]*=[[:space:]]*||g' -e 's|^[[:space:]]*||g' -e 's|[[:space:]]*$||g' -e 's|"||g') + fi + if [ -z "${CI_DEVELOPER_EMAIL}" ]; then + PRNWARN "DEVELOPER_EMAIL is not set in the options or environment variables. There is no choice but to set the default value." + CI_DEVELOPER_EMAIL="antpickax-support@mail.yahoo.co.jp" + fi fi if [ -n "${OPT_FORCE_PUBLISH}" ]; then @@ -901,13 +931,19 @@ elif [ -n "${ENV_PACKAGECLOUD_DOWNLOAD_REPO}" ]; then fi # -# Set environments for debian package +# Set environments for debian/alpine package # if [ -n "${CI_DEVELOPER_FULLNAME}" ]; then - export DEBEMAIL="${CI_DEVELOPER_FULLNAME}" + export DEBFULLNAME="${CI_DEVELOPER_FULLNAME}" +else + PRNERR "\"CI_DEVELOPER_FULLNAME\" value is not set." + exit 1 fi if [ -n "${CI_DEVELOPER_EMAIL}" ]; then - export DEBFULLNAME="${CI_DEVELOPER_EMAIL}" + export DEBEMAIL="${CI_DEVELOPER_EMAIL}" +else + PRNERR "\"CI_DEVELOPER_EMAIL\" value is not set." + exit 1 fi # [NOTE] for ubuntu/debian @@ -1013,12 +1049,6 @@ elif [ "${IS_OS_DEBIAN}" -eq 1 ]; then CREATE_PACKAGE_TOOL="${CREATE_PACKAGE_TOOL_DEBIAN}" CREATE_PACKAGE_TOOL_OPT="${CREATE_PACKAGE_TOOL_OPT_DEBIAN}" -elif [ "${IS_OS_CENTOS}" -eq 1 ]; then - BUILD_MAKE_EXT_OPT="${BUILD_MAKE_EXT_OPT_DEBIAN}" - MAKE_TEST_OPT="${MAKE_TEST_OPT_DEBIAN}" - CREATE_PACKAGE_TOOL="${CREATE_PACKAGE_TOOL_RPM}" - CREATE_PACKAGE_TOOL_OPT="${CREATE_PACKAGE_TOOL_OPT_RPM}" - elif [ "${IS_OS_FEDORA}" -eq 1 ]; then BUILD_MAKE_EXT_OPT="${BUILD_MAKE_EXT_OPT_RPM}" MAKE_TEST_OPT="${MAKE_TEST_OPT_RPM}" @@ -1160,7 +1190,6 @@ echo " SWITCH_PHP_COMMAND = ${SWITCH_PHP_COMMAND}" echo "" echo " IS_OS_UBUNTU = ${IS_OS_UBUNTU}" echo " IS_OS_DEBIAN = ${IS_OS_DEBIAN}" -echo " IS_OS_CENTOS = ${IS_OS_CENTOS}" echo " IS_OS_FEDORA = ${IS_OS_FEDORA}" echo " IS_OS_ROCKY = ${IS_OS_ROCKY}" echo " IS_OS_ALPINE = ${IS_OS_ALPINE}" @@ -1227,7 +1256,7 @@ if [ "${CI_USE_PACKAGECLOUD_REPO}" -eq 1 ]; then # # Setup packagecloud.io repository # - if [ "${IS_OS_CENTOS}" -eq 1 ] || [ "${IS_OS_FEDORA}" -eq 1 ] || [ "${IS_OS_ROCKY}" -eq 1 ]; then + if [ "${IS_OS_FEDORA}" -eq 1 ] || [ "${IS_OS_ROCKY}" -eq 1 ]; then PC_REPO_ADD_SH="script.rpm.sh" PC_REPO_ADD_SH_RUN="bash" elif [ "${IS_OS_UBUNTU}" -eq 1 ] || [ "${IS_OS_DEBIAN}" -eq 1 ]; then @@ -1247,7 +1276,7 @@ if [ "${CI_USE_PACKAGECLOUD_REPO}" -eq 1 ]; then exit 1 fi else - PRNWARN "OS is not debian/ubuntu nor centos/fedora/rocky nor alpine, then we do not know which download script use. Thus skip to setup packagecloud.io repository." + PRNWARN "OS is not debian/ubuntu nor fedora/rocky nor alpine, then we do not know which download script use. Thus skip to setup packagecloud.io repository." fi else PRNINFO "Not set packagecloud.io repository." @@ -1278,7 +1307,7 @@ PRNTITLE "Add PHP repositories" if [ -n "${INSTALL_PHP_REPO}" ]; then PRNINFO "PHP repositories" - if [ "${IS_OS_CENTOS}" -eq 1 ] || [ "${IS_OS_ROCKY}" -eq 1 ] || [ "${IS_OS_FEDORA}" -eq 1 ]; then + if [ "${IS_OS_ROCKY}" -eq 1 ] || [ "${IS_OS_FEDORA}" -eq 1 ]; then if ({ RUNCMD "${INSTALLER_BIN}" "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" "${INSTALL_QUIET_ARG}" "${INSTALL_PHP_REPO}" || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then PRNERR "Failed to add PHP repository." exit 1 @@ -1414,28 +1443,7 @@ if [ "${CI_DO_PUBLISH}" -eq 1 ]; then GEM_BIN="gem" GEM_INSTALL_CMD="install" - if [ "${IS_OS_CENTOS}" -eq 1 ] && echo "${CI_OSTYPE}" | sed -e 's#:##g' | grep -q -i -e 'centos7' -e 'centos6'; then - # - # Case for CentOS - # - PRNWARN "OS is CentOS 7(6), so install ruby by special means(SCL)." - - if ({ RUNCMD "${INSTALLER_BIN}" "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" "${INSTALL_QUIET_ARG}" centos-release-scl || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install SCL packages" - exit 1 - fi - if ({ RUNCMD "${INSTALLER_BIN}" "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" "${INSTALL_QUIET_ARG}" rh-ruby27 rh-ruby27-ruby-devel rh-ruby27-rubygem-rake || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install ruby packages" - exit 1 - fi - . /opt/rh/rh-ruby27/enable - - if ({ RUNCMD "${GEM_BIN}" "${GEM_INSTALL_CMD}" package_cloud || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install packagecloud.io upload tools" - exit 1 - fi - - elif [ "${IS_OS_ALPINE}" -eq 1 ]; then + if [ "${IS_OS_ALPINE}" -eq 1 ]; then # # Case for Alpine # @@ -1565,7 +1573,7 @@ if [ "${CI_DO_PUBLISH}" -eq 1 ]; then else # - # Case for other than CentOS / Alpine / Debian 10 / Rocky Linux 8 + # Case for other than Alpine / Debian 10 / Rocky Linux 8 # if ({ RUNCMD "${GEM_BIN}" "${GEM_INSTALL_CMD}" rake package_cloud || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then PRNERR "Failed to install packagecloud.io upload tools" @@ -1582,29 +1590,10 @@ PRNSUCCESS "Install published tools for uploading packages to packagecloud.io" #-------------------------------------------------------------- PRNTITLE "Install cppcheck" -IS_SET_ANOTHER_REPOSITORIES=0 if [ "${RUN_CPPCHECK}" -eq 1 ]; then PRNINFO "Install cppcheck package." - if [ "${IS_OS_CENTOS}" -eq 1 ]; then - # - # CentOS - # - if ({ RUNCMD "${INSTALLER_BIN}" "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" epel-release || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install epel repository" - exit 1 - fi - if ({ RUNCMD yum-config-manager --disable epel || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to disable epel repository" - exit 1 - fi - if ({ RUNCMD "${INSTALLER_BIN}" --enablerepo=epel "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" cppcheck || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install cppcheck from epel repository" - exit 1 - fi - IS_SET_ANOTHER_REPOSITORIES=1 - - elif [ "${IS_OS_FEDORA}" -eq 1 ]; then + if [ "${IS_OS_FEDORA}" -eq 1 ]; then # # Fedora # @@ -1647,7 +1636,6 @@ if [ "${RUN_CPPCHECK}" -eq 1 ]; then PRNERR "Failed to install cppcheck" exit 1 fi - IS_SET_ANOTHER_REPOSITORIES=1 elif [ "${IS_OS_UBUNTU}" -eq 1 ] || [ "${IS_OS_DEBIAN}" -eq 1 ]; then # @@ -1683,27 +1671,7 @@ PRNTITLE "Install shellcheck" if [ "${RUN_SHELLCHECK}" -eq 1 ]; then PRNINFO "Install shellcheck package." - if [ "${IS_OS_CENTOS}" -eq 1 ]; then - # - # CentOS - # - if [ "${IS_SET_ANOTHER_REPOSITORIES}" -eq 0 ]; then - if ({ RUNCMD "${INSTALLER_BIN}" "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" epel-release || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install epel repository" - exit 1 - fi - if ({ RUNCMD yum-config-manager --disable epel || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to disable epel repository" - exit 1 - fi - IS_SET_ANOTHER_REPOSITORIES=1 - fi - if ({ RUNCMD "${INSTALLER_BIN}" --enablerepo=epel "${INSTALL_CMD}" "${INSTALL_CMD_ARG}" "${INSTALL_AUTO_ARG}" ShellCheck || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's/^/ /g') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then - PRNERR "Failed to install ShellCheck from epel repository" - exit 1 - fi - - elif [ "${IS_OS_FEDORA}" -eq 1 ]; then + if [ "${IS_OS_FEDORA}" -eq 1 ]; then # # Fedora # diff --git a/.github/workflows/phpexttypevars.sh b/.github/workflows/phpexttypevars.sh index d0e6435..f038d1f 100644 --- a/.github/workflows/phpexttypevars.sh +++ b/.github/workflows/phpexttypevars.sh @@ -66,7 +66,6 @@ # # IS_OS_UBUNTU : Set to 1 for Ubuntu, 0 otherwise # IS_OS_DEBIAN : Set to 1 for Debian, 0 otherwise -# IS_OS_CENTOS : Set to 1 for CentOS, 0 otherwise # IS_OS_FEDORA : Set to 1 for Fedora, 0 otherwise # IS_OS_ROCKY : Set to 1 for Rocky, 0 otherwise # IS_OS_ALPINE : Set to 1 for Alpine, 0 otherwise @@ -114,7 +113,6 @@ PHPVER_WITHPERIOD="" IS_OS_UBUNTU=0 IS_OS_DEBIAN=0 -IS_OS_CENTOS=0 IS_OS_FEDORA=0 IS_OS_ROCKY=0 IS_OS_ALPINE=0 @@ -135,18 +133,22 @@ if [ -z "${CI_PHPTYPE}" ]; then # Unknown PHP version : Nothing to do # : -elif [ "${CI_PHPTYPE}" = "PHP7.4" ] || [ "${CI_PHPTYPE}" = "PHP74" ] || [ "${CI_PHPTYPE}" = "PHP7" ] || [ "${CI_PHPTYPE}" = "7.4" ] || [ "${CI_PHPTYPE}" = "74" ] || [ "${CI_PHPTYPE}" = "7" ]; then - PHPVER_NOPERIOD="74" - PHPVER_WITHPERIOD="7.4" -elif [ "${CI_PHPTYPE}" = "PHP8.0" ] || [ "${CI_PHPTYPE}" = "PHP80" ] || [ "${CI_PHPTYPE}" = "8.0" ] || [ "${CI_PHPTYPE}" = "80" ]; then + +elif echo "${CI_PHPTYPE}" | grep -q -i -e "PHP8.0" -e "PHP80" -e "8.0" -e "80"; then PHPVER_NOPERIOD="80" PHPVER_WITHPERIOD="8.0" -elif [ "${CI_PHPTYPE}" = "PHP8.1" ] || [ "${CI_PHPTYPE}" = "PHP81" ] || [ "${CI_PHPTYPE}" = "8.1" ] || [ "${CI_PHPTYPE}" = "81" ]; then + +elif echo "${CI_PHPTYPE}" | grep -q -i -e "PHP8.1" -e "PHP81" -e "8.1" -e "81"; then PHPVER_NOPERIOD="81" PHPVER_WITHPERIOD="8.1" -elif [ "${CI_PHPTYPE}" = "PHP8.2" ] || [ "${CI_PHPTYPE}" = "PHP82" ] || [ "${CI_PHPTYPE}" = "8.2" ] || [ "${CI_PHPTYPE}" = "82" ]; then + +elif echo "${CI_PHPTYPE}" | grep -q -i -e "PHP8.2" -e "PHP82" -e "8.2" -e "82"; then PHPVER_NOPERIOD="82" PHPVER_WITHPERIOD="8.2" + +elif echo "${CI_PHPTYPE}" | grep -q -i -e "PHP8.3" -e "PHP83" -e "8.3" -e "83"; then + PHPVER_NOPERIOD="83" + PHPVER_WITHPERIOD="8.3" fi # @@ -157,8 +159,9 @@ if [ -z "${CI_OSTYPE}" ]; then # Unknown OS : Nothing to do # : -elif [ "${CI_OSTYPE}" = "ubuntu:22.04" ] || [ "${CI_OSTYPE}" = "ubuntu:jammy" ]; then - DIST_TAG="ubuntu/jammy" + +elif echo "${CI_OSTYPE}" | grep -q -i -e "ubuntu:24.04" -e "ubuntu:noble"; then + DIST_TAG="ubuntu/noble" PKG_EXT="deb" PKG_OUTPUT_DIR="packages" @@ -181,8 +184,8 @@ elif [ "${CI_OSTYPE}" = "ubuntu:22.04" ] || [ "${CI_OSTYPE}" = "ubuntu:jammy" ]; IS_OS_UBUNTU=1 -elif [ "${CI_OSTYPE}" = "ubuntu:20.04" ] || [ "${CI_OSTYPE}" = "ubuntu:focal" ]; then - DIST_TAG="ubuntu/focal" +elif echo "${CI_OSTYPE}" | grep -q -i -e "ubuntu:22.04" -e "ubuntu:jammy"; then + DIST_TAG="ubuntu/jammy" PKG_EXT="deb" PKG_OUTPUT_DIR="packages" @@ -205,8 +208,8 @@ elif [ "${CI_OSTYPE}" = "ubuntu:20.04" ] || [ "${CI_OSTYPE}" = "ubuntu:focal" ]; IS_OS_UBUNTU=1 -elif [ "${CI_OSTYPE}" = "debian:12" ] || [ "${CI_OSTYPE}" = "debian:bookworm" ]; then - DIST_TAG="debian/bookworm" +elif echo "${CI_OSTYPE}" | grep -q -i -e "ubuntu:20.04" -e "ubuntu:focal"; then + DIST_TAG="ubuntu/focal" PKG_EXT="deb" PKG_OUTPUT_DIR="packages" @@ -220,19 +223,17 @@ elif [ "${CI_OSTYPE}" = "debian:12" ] || [ "${CI_OSTYPE}" = "debian:bookworm" ]; INSTALL_PKG_LIST="git lintian debhelper pkg-config ruby-dev rubygems rubygems-integration procps shtool k2hash-dev" INSTALL_PHP_PRE_ADD_REPO="ca-certificates apt-transport-https software-properties-common" - INSTALL_PHP_REPO="packages.sury.org/php" - INSTALL_PHP_REPO_GPG_URL="https://packages.sury.org/php/apt.gpg" - INSTALL_PHP_REPO_GPG_FILEPATH="/usr/share/keyrings/deb.sury.org-php.gpg" + INSTALL_PHP_REPO="ppa:ondrej/php" INSTALL_PHP_PKG_LIST="dh-php php${PHPVER_WITHPERIOD} php${PHPVER_WITHPERIOD}-dev libapache2-mod-php${PHPVER_WITHPERIOD}" INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="update-alternatives --set php-config /usr/bin/php-config${PHPVER_WITHPERIOD}" INSTALL_PHP_POST_BIN="update-alternatives --set php /usr/bin/php${PHPVER_WITHPERIOD}" SWITCH_PHP_COMMAND="" - IS_OS_DEBIAN=1 + IS_OS_UBUNTU=1 -elif [ "${CI_OSTYPE}" = "debian:11" ] || [ "${CI_OSTYPE}" = "debian:bullseye" ]; then - DIST_TAG="debian/bullseye" +elif echo "${CI_OSTYPE}" | grep -q -i -e "debian:12" -e "debian:bookworm"; then + DIST_TAG="debian/bookworm" PKG_EXT="deb" PKG_OUTPUT_DIR="packages" @@ -257,8 +258,8 @@ elif [ "${CI_OSTYPE}" = "debian:11" ] || [ "${CI_OSTYPE}" = "debian:bullseye" ]; IS_OS_DEBIAN=1 -elif [ "${CI_OSTYPE}" = "debian:10" ] || [ "${CI_OSTYPE}" = "debian:buster" ]; then - DIST_TAG="debian/buster" +elif echo "${CI_OSTYPE}" | grep -q -i -e "debian:11" -e "debian:bullseye"; then + DIST_TAG="debian/bullseye" PKG_EXT="deb" PKG_OUTPUT_DIR="packages" @@ -283,7 +284,7 @@ elif [ "${CI_OSTYPE}" = "debian:10" ] || [ "${CI_OSTYPE}" = "debian:buster" ]; t IS_OS_DEBIAN=1 -elif [ "${CI_OSTYPE}" = "rockylinux:9.0" ] || [ "${CI_OSTYPE}" = "rockylinux:9" ]; then +elif echo "${CI_OSTYPE}" | grep -q -i "rockylinux:9"; then DIST_TAG="el/9" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" @@ -307,7 +308,7 @@ elif [ "${CI_OSTYPE}" = "rockylinux:9.0" ] || [ "${CI_OSTYPE}" = "rockylinux:9" IS_OS_ROCKY=1 -elif [ "${CI_OSTYPE}" = "rockylinux:8.6" ] || [ "${CI_OSTYPE}" = "rockylinux:8" ]; then +elif echo "${CI_OSTYPE}" | grep -q -i "rockylinux:8"; then DIST_TAG="el/8" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" @@ -330,32 +331,32 @@ elif [ "${CI_OSTYPE}" = "rockylinux:8.6" ] || [ "${CI_OSTYPE}" = "rockylinux:8" SWITCH_PHP_COMMAND="scl enable php${PHPVER_NOPERIOD} --" IS_OS_ROCKY=1 -elif [ "${CI_OSTYPE}" = "centos:7" ] || [ "${CI_OSTYPE}" = "centos:centos7" ]; then - DIST_TAG="el/7" +elif echo "${CI_OSTYPE}" | grep -q -i "fedora:41"; then + DIST_TAG="fedora/41" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" - INSTALLER_BIN="yum" + INSTALLER_BIN="dnf" UPDATE_CMD="update" UPDATE_CMD_ARG="" INSTALL_CMD="install" INSTALL_CMD_ARG="" INSTALL_AUTO_ARG="-y" INSTALL_QUIET_ARG="-q" - INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build rubygems procps python k2hash-devel" + INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build ruby-devel rubygems procps python3 k2hash-devel" - INSTALL_PHP_PRE_ADD_REPO="centos-release-scl-rh centos-release-scl" - INSTALL_PHP_REPO="https://rpms.remirepo.net/enterprise/remi-release-7.rpm" + INSTALL_PHP_PRE_ADD_REPO="" + INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-41.rpm" INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD}-php-devel php${PHPVER_NOPERIOD}-scldevel php${PHPVER_NOPERIOD}-build" - INSTALL_PHP_OPT="--enablerepo=remi-php${PHPVER_NOPERIOD}" + INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="" INSTALL_PHP_POST_BIN="" SWITCH_PHP_COMMAND="scl enable php${PHPVER_NOPERIOD} --" - IS_OS_CENTOS=1 + IS_OS_FEDORA=1 -elif [ "${CI_OSTYPE}" = "fedora:39" ]; then - DIST_TAG="fedora/39" +elif echo "${CI_OSTYPE}" | grep -q -i "fedora:40"; then + DIST_TAG="fedora/40" PKG_EXT="rpm" PKG_OUTPUT_DIR="packages" @@ -369,7 +370,7 @@ elif [ "${CI_OSTYPE}" = "fedora:39" ]; then INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build ruby-devel rubygems procps python3 k2hash-devel" INSTALL_PHP_PRE_ADD_REPO="" - INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-39.rpm" + INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-40.rpm" INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD}-php-devel php${PHPVER_NOPERIOD}-scldevel php${PHPVER_NOPERIOD}-build" INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="" @@ -378,31 +379,35 @@ elif [ "${CI_OSTYPE}" = "fedora:39" ]; then IS_OS_FEDORA=1 -elif [ "${CI_OSTYPE}" = "fedora:38" ]; then - DIST_TAG="fedora/38" - PKG_EXT="rpm" +elif echo "${CI_OSTYPE}" | grep -q -i "alpine:3.20"; then + DIST_TAG="alpine/v3.20" + PKG_EXT="apk" PKG_OUTPUT_DIR="packages" - INSTALLER_BIN="dnf" + INSTALLER_BIN="apk" UPDATE_CMD="update" - UPDATE_CMD_ARG="" - INSTALL_CMD="install" - INSTALL_CMD_ARG="" - INSTALL_AUTO_ARG="-y" + UPDATE_CMD_ARG="--no-progress" + INSTALL_CMD="add" + INSTALL_CMD_ARG="--no-progress --no-cache" + INSTALL_AUTO_ARG="" INSTALL_QUIET_ARG="-q" - INSTALL_PKG_LIST="git make diffutils pkgconfig patch yum-utils rpmdevtools redhat-rpm-config rpm-build rpm-devel rpmlint scl-utils-build ruby-devel rubygems procps python3 k2hash-devel" + INSTALL_PKG_LIST="bash sudo alpine-sdk util-linux-misc musl-locales ruby-dev procps k2hash-dev" INSTALL_PHP_PRE_ADD_REPO="" - INSTALL_PHP_REPO="https://rpms.remirepo.net/fedora/remi-release-38.rpm" - INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD}-php-devel php${PHPVER_NOPERIOD}-scldevel php${PHPVER_NOPERIOD}-build" + INSTALL_PHP_REPO="" + INSTALL_PHP_PKG_LIST="php${PHPVER_NOPERIOD} php${PHPVER_NOPERIOD}-dev" INSTALL_PHP_OPT="" INSTALL_PHP_POST_CONFIG="" INSTALL_PHP_POST_BIN="" - SWITCH_PHP_COMMAND="scl enable php${PHPVER_NOPERIOD} --" + SWITCH_PHP_COMMAND="" - IS_OS_FEDORA=1 + IS_OS_ALPINE=1 + + if [ "${PHPVER_NOPERIOD}" != "83" ]; then + NOT_PROVIDED_PHPVER=1 + fi -elif [ "${CI_OSTYPE}" = "alpine:3.19" ]; then +elif echo "${CI_OSTYPE}" | grep -q -i "alpine:3.19"; then DIST_TAG="alpine/v3.19" PKG_EXT="apk" PKG_OUTPUT_DIR="packages" @@ -430,7 +435,7 @@ elif [ "${CI_OSTYPE}" = "alpine:3.19" ]; then NOT_PROVIDED_PHPVER=1 fi -elif [ "${CI_OSTYPE}" = "alpine:3.18" ]; then +elif echo "${CI_OSTYPE}" | grep -q -i "alpine:3.18"; then DIST_TAG="alpine/v3.18" PKG_EXT="apk" PKG_OUTPUT_DIR="packages" diff --git a/K2hIterator.c b/K2hIterator.c index f706e43..f75b98e 100644 --- a/K2hIterator.c +++ b/K2hIterator.c @@ -27,7 +27,7 @@ // cppcheck-suppress missingInclude #include "ext/standard/info.h" #include "php_k2hash.h" -#include "k2hash_compat.h" +#include "k2hash_arginfo.h" extern int le_k2hhandle; zend_class_entry * php_k2hiterator_ce = NULL; diff --git a/K2hKeyQueue.c b/K2hKeyQueue.c index ffea474..4fda39c 100644 --- a/K2hKeyQueue.c +++ b/K2hKeyQueue.c @@ -27,7 +27,7 @@ // cppcheck-suppress missingInclude #include "ext/standard/info.h" #include "php_k2hash.h" -#include "k2hash_compat.h" +#include "k2hash_arginfo.h" extern int le_k2hhandle; zend_class_entry * php_k2hkeyqueue_ce = NULL; diff --git a/K2hQueue.c b/K2hQueue.c index 961586e..6ac52f0 100644 --- a/K2hQueue.c +++ b/K2hQueue.c @@ -27,7 +27,7 @@ // cppcheck-suppress missingInclude #include "ext/standard/info.h" #include "php_k2hash.h" -#include "k2hash_compat.h" +#include "k2hash_arginfo.h" extern int le_k2hhandle; zend_class_entry * php_k2hqueue_ce = NULL; diff --git a/K2hash.c b/K2hash.c index 0f1e248..a73efad 100644 --- a/K2hash.c +++ b/K2hash.c @@ -27,7 +27,7 @@ // cppcheck-suppress missingInclude #include "ext/standard/info.h" #include "php_k2hash.h" -#include "k2hash_compat.h" +#include "k2hash_arginfo.h" extern php_stream* k2hpx_da_open(k2h_h handle, const char* key, const char* mode STREAMS_DC); extern zend_class_entry *php_k2hqueue_ce; diff --git a/README.md b/README.md index 4b18301..7410d4b 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ $ sudo apt-get update -y $ sudo apt-get install curl -y $ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.deb.sh | sudo bash -$ sudo apt-get install -y php8.1 libapache2-mod-php8.1 -$ sudo update-alternatives --set php-config /usr/bin/php-config8.1 -$ sudo update-alternatives --set php /usr/bin/php8.1 +$ sudo apt-get install -y php8.3 libapache2-mod-php8.3 +$ sudo update-alternatives --set php-config /usr/bin/php-config8.3 +$ sudo update-alternatives --set php /usr/bin/php8.3 $ sudo apt-get install -y k2hash php-pecl-k2hash ``` - Fedora derived RPM based Linux(Fedora, CentOS, CentOS Stream, RHEL, etc.) users can install it by following the steps below: @@ -44,10 +44,10 @@ $ sudo dnf update -y $ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.rpm.sh | sudo bash -$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm +$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm +$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm $ sudo dnf module reset php -$ sudo dnf module install php:remi-8.1 +$ sudo dnf module install php:remi-8.3 $ sudo dnf install -y php-pecl-k2hash ``` diff --git a/buildutils/control.in.in b/buildutils/control.in.in index bfbc5c2..955bf29 100644 --- a/buildutils/control.in.in +++ b/buildutils/control.in.in @@ -3,13 +3,15 @@ Section: php Priority: optional Maintainer: @DEV_NAME@ <@DEV_EMAIL@> Uploaders: @DEV_NAME@ <@DEV_EMAIL@> -Build-Depends: debhelper (>= 10~), debhelper-compat (= 11), dh-php (>= 4~), k2hash-dev, php@K2H_PHP_MAJOR_VERSION@.@K2H_PHP_MINOR_VERSION@-dev +Build-Depends: debhelper (>= 10~), debhelper-compat (= 11), dh-php (>= 4~), + php@K2H_PHP_VERSION@-dev, k2hash-dev Standards-Version: 4.5.1 Homepage: @HOME_PAGE@ Vcs-Git: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@.git Vcs-Browser: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@ +X-PHP-Versions: @K2H_PHP_VERSION@ -Package: php7.4-@PHP_PECL_BASE_NAME@ +Package: php@K2H_PHP_VERSION@-@PHP_PECL_BASE_NAME@ Architecture: any Pre-Depends: php-common (>= 2:69~) Depends: ucf, ${misc:Depends}, ${pecl:Depends}, ${shlibs:Depends}, ${php:Depends} @@ -18,34 +20,8 @@ Breaks: ${pecl:Breaks} Replaces: ${pecl:Replaces} Suggests: ${pecl:Suggests} Recommends: ${pecl:Recommends} -Description: k2hash extension for PHP7.4 - This extension adds API for k2hash for PHP7.4. - This package is a metapackage of @K2H_EXT_PKGNAME@. - -Package: php8.0-@PHP_PECL_BASE_NAME@ -Architecture: any -Pre-Depends: php-common (>= 2:69~) -Depends: ucf, ${misc:Depends}, ${pecl:Depends}, ${shlibs:Depends}, ${php:Depends} -Provides: ${pecl:Provides}, ${php:Provides} -Breaks: ${pecl:Breaks} -Replaces: ${pecl:Replaces} -Suggests: ${pecl:Suggests} -Recommends: ${pecl:Recommends} -Description: k2hash extension for PHP8.0 - This extension adds API for k2hash for PHP8.0. - This package is a metapackage of @K2H_EXT_PKGNAME@. - -Package: php8.1-@PHP_PECL_BASE_NAME@ -Architecture: any -Pre-Depends: php-common (>= 2:69~) -Depends: ucf, ${misc:Depends}, ${pecl:Depends}, ${shlibs:Depends}, ${php:Depends} -Provides: ${pecl:Provides}, ${php:Provides} -Breaks: ${pecl:Breaks} -Replaces: ${pecl:Replaces} -Suggests: ${pecl:Suggests} -Recommends: ${pecl:Recommends} -Description: k2hash extension for PHP8.1 - This extension adds API for k2hash for PHP8.1. +Description: k2hash extension for PHP@K2H_PHP_VERSION@ + This extension adds API for k2hash for PHP@K2H_PHP_VERSION@. This package is a metapackage of @K2H_EXT_PKGNAME@. Package: @K2H_EXT_PKGNAME@ diff --git a/buildutils/php-pecl-k2hash.spec.in b/buildutils/php-pecl-k2hash.spec.in index a93f369..4169fe0 100644 --- a/buildutils/php-pecl-k2hash.spec.in +++ b/buildutils/php-pecl-k2hash.spec.in @@ -63,7 +63,7 @@ URL: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/ Source0: https://@GIT_DOMAIN@/@GIT_ORG@/@GIT_REPO@/archive/@K2H_EXT_PKGNAME@-%{version}.tar.gz BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7.4 +BuildRequires: %{?scl_prefix}php-devel >= 8.1 BuildRequires: k2hash-devel >= %{buildver} Requires: k2hash%{?_isa} >= %{buildver} diff --git a/buildutils/php_alpine_build.sh b/buildutils/php_alpine_build.sh index 19d9ad7..da8115a 100755 --- a/buildutils/php_alpine_build.sh +++ b/buildutils/php_alpine_build.sh @@ -65,6 +65,7 @@ EXTRA_COPY_FILES_CONF="${SCRIPTDIR}/${PRGNAME_NOEXT}_copy.conf" APKBUILD_TEMPLATE_FILE="${SRCTOP}/buildutils/APKBUILD.templ" APKBUILD_FILE="${APK_TOPDIR}/APKBUILD" APKBUILD_CONFIG_DIR="${HOME}/.abuild" +APK_KEYS_DIR="/etc/apk/keys" # # Message variables @@ -314,17 +315,28 @@ fi #-------------------------------------------------------------- # Check running as root user and Set APKBUILD option #-------------------------------------------------------------- -# [NOTE] -# The abuild tool drains errors when run as root. -# To avoid this, the "-F" option is required. -# PRNINFO "Check running as root user and Set APKBUILD option" +# +# Check running as root user +# RUN_USER_ID=$(id -u) -ABUILD_OPT="" +if [ -n "${RUN_USER_ID}" ] && [ "${RUN_USER_ID}" -eq 0 ]; then + SUDO_CMD="" +else + SUDO_CMD="sudo" +fi + +# [NOTE] +# The abuild tool drains errors when run as root. +# To avoid this, the "-F" option is required. +# If you need verbose message, you can add "-v" option here. +# if [ -n "${RUN_USER_ID}" ] && [ "${RUN_USER_ID}" -eq 0 ]; then ABUILD_OPT="-F" +else + ABUILD_OPT="" fi #-------------------------------------------------------------- @@ -338,12 +350,7 @@ PACKAGE_VERSION=$(head -n 1 "${SRCTOP}"/ChangeLog | sed -e 's/[(]//g' -e 's/[)]/ PACKAGE_PHPMAJORVERSION=$(php -r 'echo PHP_MAJOR_VERSION;') PACKAGE_PHPMINORVERSION=$(php -r 'echo PHP_MINOR_VERSION;') -if [ "${PACKAGE_PHPMAJORVERSION}" = "7" ]; then - # - # 7.4 -> 7 - # - PACKAGE_PHPVERSION="${PACKAGE_PHPMAJORVERSION}" -elif [ "${PACKAGE_PHPMAJORVERSION}" = "8" ] && [ "${PACKAGE_PHPMINORVERSION}" = "0" ]; then +if [ "${PACKAGE_PHPMAJORVERSION}" = "8" ] && [ "${PACKAGE_PHPMINORVERSION}" = "0" ]; then # # 8.0 -> 8 # @@ -446,6 +453,28 @@ PRNSUCCESS "Created ${APK_TOPDIR}" #--------------------------------------------------------------- PRNTITLE "Create RSA key for signing" +# +# Determining the RSA key location directory +# +# [NOTE] +# This directory path depends on the apk-tools version. +# It is different for 2.14.4 and later and previous versions. +# +APKTOOLS_ALL_VER=$(apk list apk-tools | awk '{print $1}' | tail -1) +APKTOOLS_MAJOR_VER=$(echo "${APKTOOLS_ALL_VER}" | sed -e 's#^[[:space:]]*apk-tools-##g' -e 's#-# #g' -e 's#\.# #g' | awk '{print $1}') +APKTOOLS_MINOR_VER=$(echo "${APKTOOLS_ALL_VER}" | sed -e 's#^[[:space:]]*apk-tools-##g' -e 's#-# #g' -e 's#\.# #g' | awk '{print $2}') +APKTOOLS_PATCH_VER=$(echo "${APKTOOLS_ALL_VER}" | sed -e 's#^[[:space:]]*apk-tools-##g' -e 's#-# #g' -e 's#\.# #g' | awk '{print $3}') +if [ -z "${APKTOOLS_MAJOR_VER}" ] || [ -z "${APKTOOLS_MINOR_VER}" ] || [ -z "${APKTOOLS_PATCH_VER}" ]; then + echo "[ERROR] Could not get aok-tools package version." 1>&2 + exit 1 +fi +APKTOOLS_MIX_VER=$((APKTOOLS_MAJOR_VER * 1000 * 1000 + APKTOOLS_MINOR_VER * 1000 + APKTOOLS_PATCH_VER)) +if [ "${APKTOOLS_MIX_VER}" -lt 2014004 ]; then + RSA_KEYS_DIR="${APK_TOPDIR}" +else + RSA_KEYS_DIR="${APK_KEYS_DIR}" +fi + # # Check "${HOME}/.abuild" directory # @@ -477,12 +506,12 @@ if ! find "${APKBUILD_CONFIG_DIR}" -name "${DEBEMAIL}"-\*\.rsa\.pub | grep -q "$ PRNERR "Not found ${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-.rsa.pub files." exit 1 fi -if ! cp -p "${APKBUILD_CONFIG_DIR}"/"${DEBEMAIL}"-*.rsa "${APK_TOPDIR}"; then - PRNERR "Failed to copy RSA private key(${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-.rsa) to ${APK_TOPDIR} directory." +if ! /bin/sh -c "${SUDO_CMD} cp -p ${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-*.rsa ${RSA_KEYS_DIR} >/dev/null 2>&1"; then + PRNERR "Failed to copy RSA private key(${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-.rsa) to ${RSA_KEYS_DIR} directory." exit 1 fi -if ! cp -p "${APKBUILD_CONFIG_DIR}"/"${DEBEMAIL}"-*.rsa.pub "${APK_TOPDIR}"; then - PRNERR "Failed to copy RSA public key(${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-.rsa.pub) to ${APK_TOPDIR} directory." +if ! /bin/sh -c "${SUDO_CMD} cp -p ${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-*.rsa.pub ${RSA_KEYS_DIR} >/dev/null 2>&1"; then + PRNERR "Failed to copy RSA public key(${APKBUILD_CONFIG_DIR}/${DEBEMAIL}-.rsa.pub) to ${RSA_KEYS_DIR} directory." exit 1 fi @@ -498,15 +527,15 @@ rm -rf "${APKBUILD_CONFIG_DIR}" # # Set file name/key contents to variables # -APK_PACKAGE_PRIV_KEYNAME="$(find "${APK_TOPDIR}" -name "${DEBEMAIL}"-\*\.rsa 2>/dev/null | head -1 | sed -e "s#${APK_TOPDIR}/##g" | tr -d '\n')" -APK_PACKAGE_PUB_KEYNAME="$(find "${APK_TOPDIR}" -name "${DEBEMAIL}"-\*\.rsa\.pub 2>/dev/null | head -1 | sed -e "s#${APK_TOPDIR}/##g" | tr -d '\n')" +APK_PACKAGE_PRIV_KEYNAME="$(find "${RSA_KEYS_DIR}" -name "${DEBEMAIL}"-\*\.rsa 2>/dev/null | head -1 | sed -e "s#${RSA_KEYS_DIR}/##g" | tr -d '\n')" +APK_PACKAGE_PUB_KEYNAME="$(find "${RSA_KEYS_DIR}" -name "${DEBEMAIL}"-\*\.rsa\.pub 2>/dev/null | head -1 | sed -e "s#${RSA_KEYS_DIR}/##g" | tr -d '\n')" # # Information # echo "" -echo " RSA private key : ${APK_TOPDIR}/${APK_PACKAGE_PRIV_KEYNAME}" -echo " RSA public key : ${APK_TOPDIR}/${APK_PACKAGE_PUB_KEYNAME}" +echo " RSA private key : ${RSA_KEYS_DIR}/${APK_PACKAGE_PRIV_KEYNAME}" +echo " RSA public key : ${RSA_KEYS_DIR}/${APK_PACKAGE_PUB_KEYNAME}" echo "" PRNSUCCESS "Created RSA keys" @@ -665,7 +694,7 @@ PRNTITLE "Build APK packages." # # build APK packages # -if ({ /bin/sh -c "PACKAGER_PRIVKEY=${APK_TOPDIR}/${APK_PACKAGE_PRIV_KEYNAME} abuild ${ABUILD_OPT} -r -P $(pwd)" || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's#^# #') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then +if ({ /bin/sh -c "PACKAGER_PRIVKEY=${RSA_KEYS_DIR}/${APK_PACKAGE_PRIV_KEYNAME} abuild ${ABUILD_OPT} -r -P $(pwd)" || echo > "${PIPEFAILURE_FILE}"; } | sed -e 's#^# #') && rm "${PIPEFAILURE_FILE}" >/dev/null 2>&1; then PRNERR "Failed to create APK packages." exit 1 fi diff --git a/buildutils/rules.in b/buildutils/rules.in index fdf3697..17f903a 100644 --- a/buildutils/rules.in +++ b/buildutils/rules.in @@ -41,24 +41,6 @@ override_dh_testdir: $(DIR_TARGETS) build-%: mkdir -p build-$(*) -# [NOTE] -# The "control" file will be created without the following call, -# but it will output "php-pecl-" instead of "php<8.1>-pecl-" -# and the build will fail. -# To avoid this, make the following call. -# -debian/control: debian/control.in - /usr/share/dh-php/gen-control - -# [NOTE] 2023/9 -# Because updated pkg-pecl.mk, the "-a" option is added when calling gen-control. -# If this "-a" option is given, an error will occur, so do not add the "-a" option -# as before the update. -# -override_dh_clean: - dh_clean - /usr/share/dh-php/gen-control - # # Local variables: # tab-width: 4 diff --git a/k2hash_arginfo_php74.h b/k2hash_arginfo_php74.h deleted file mode 100644 index 4828f5b..0000000 --- a/k2hash_arginfo_php74.h +++ /dev/null @@ -1,1745 +0,0 @@ -/* -* K2HASH PHP Extension library -* -* Copyright 2015 Yahoo Japan Corporation. -* -* K2HASH is key-valuew store base libraries. -* K2HASH is made for the purpose of the construction of -* original KVS system and the offer of the library. -* The characteristic is this KVS library which Key can -* layer. And can support multi-processing and multi-thread, -* and is provided safely as available KVS. -* -* For the full copyright and license information, please view -* the LICENSE file that was distributed with this source code. -* -* AUTHOR: Hirotaka Wakabayashi -* CREATE: Tue, Feb 22 2022 -* REVISION: -*/ - -/* {{{ proto void k2hpx_bump_debug_level() - Bump up debugging level */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_bump_debug_level_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_bump_debug_level */ - -/* {{{ proto void k2hpx_set_debug_level_silent() - Set debugging level silent */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_debug_level_silent_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_debug_level_silent */ - -/* {{{ proto void k2hpx_set_debug_level_error() - Set debugging level error */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_debug_level_error_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_debug_level_error */ - -/* {{{ proto void k2hpx_set_debug_level_warning() - Set debugging level warning */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_debug_level_warning_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_debug_level_warning */ - -/* {{{ proto void k2hpx_set_debug_level_message() - Set debugging level message */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_debug_level_message_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_debug_level_message */ - -/* {{{ proto bool k2hpx_set_debug_file(string filepath) - Set debugging message file path */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_debug_file_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_debug_file */ - -/* {{{ proto bool k2hpx_unset_debug_file() - Unset debugging message file path */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_unset_debug_file_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_unset_debug_file */ - -/* {{{ proto bool k2hpx_load_debug_env() - Load environment for k2hash debugging */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_load_debug_env_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_load_debug_env */ - -/* {{{ proto bool k2hpx_load_hash_library(string libpath) - Load external hashing function */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_load_hash_library_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, libpath) -ZEND_END_ARG_INFO() -/* }}} k2hpx_load_hash_library */ - -/* {{{ proto bool k2hpx_unload_hash_library() - Unload external hashing function */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_unload_hash_library_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_unload_hash_library */ - -/* {{{ proto bool k2hpx_load_transaction_library(string libpath) - Load external transaction function */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_load_transaction_library_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, libpath) -ZEND_END_ARG_INFO() -/* }}} k2hpx_load_transaction_library */ - -/* {{{ proto bool k2hpx_unload_transaction_library() - Unload external transaction function */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_unload_transaction_library_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_unload_transaction_library */ - -/* {{{ proto bool k2hpx_create(string filepath[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]) - create k2hash file */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_create_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_create */ - -/* {{{ proto resource k2hhandle k2hpx_open(string filepath, bool readonly[, bool removefile = false[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]]) - open k2hash file */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_open_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, readonly) -ZEND_ARG_INFO(0, removefile) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_open */ - -/* {{{ proto resource k2hhandle k2hpx_open_rw(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - open k2hash file with read/write mode */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_open_rw_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_open_rw */ - -/* {{{ proto resource k2hhandle k2hpx_open_ro(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - open k2hash file with read only mode */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_open_ro_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_open_ro */ - -/* {{{ proto resource k2hhandle k2hpx_open_tempfile(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - open k2hash temporary file */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_open_tempfile_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_open_tempfile */ - -/* {{{ proto resource k2hhandle k2hpx_open_mem([int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]) - open k2hash on memory */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_open_mem_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() -/* }}} k2hpx_open_mem */ - -/* {{{ proto bool k2hpx_close(resource k2hhandle handle[, int waitms = 0]) - close k2hash file or memory */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_close_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, waitms) -ZEND_END_ARG_INFO() -/* }}} k2hpx_close */ - -/* {{{ proto bool k2hpx_transaction(resource k2hhandle handle, bool enable[, string transfile = NULL[, string prefix = NULL[, string param = NULL[, int expire = 0]]]]) - Set transaction file and prefix with dis/enable */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_transaction_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, enable) -ZEND_ARG_INFO(0, transfile) -ZEND_ARG_INFO(0, prefix) -ZEND_ARG_INFO(0, param) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_transaction */ - -/* {{{ proto bool k2hpx_enable_transaction(resource k2hhandle handle[, string transfile = NULL[, string prefix = NULL[, string param = NULL[, int expire = 0]]]]) - Set transaction file and prefix with enable */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_enable_transaction_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, transfile) -ZEND_ARG_INFO(0, prefix) -ZEND_ARG_INFO(0, param) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_enable_transaction */ - -/* {{{ proto bool k2hpx_disable_transaction(resource k2hhandle handle) - Disable transaction */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_disable_transaction_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_disable_transaction */ - -/* {{{ proto int k2hpx_get_transaction_thread_pool() - Get transaction thread pool count */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_get_transaction_thread_pool_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_get_transaction_thread_pool */ - -/* {{{ proto bool k2h_set_transaction_thread_pool(int count) - Set transaction thread pool count */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_transaction_thread_pool_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, count) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_transaction_thread_pool */ - -/* {{{ proto bool k2h_unset_transaction_thread_pool() - Unset transaction thread pool(no pool) */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_unset_transaction_thread_pool_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() -/* }}} k2hpx_unset_transaction_thread_pool */ - -/* {{{ proto bool k2hpx_put_archive(resource k2hhandle handle, string filepath, bool errskip) - Output archive file */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_put_archive_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, errskip) -ZEND_END_ARG_INFO() -/* }}} k2hpx_put_archive */ - -/* {{{ proto bool k2hpx_load_archive(resource k2hhandle handle, string filepath, bool errskip) - Load archive file */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_load_archive_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, errskip) -ZEND_END_ARG_INFO() -/* }}} k2hpx_load_archive */ - -/* {{{ proto bool k2hpx_set_common_attr(resource k2hhandle handle[, int is_mtime = K2H_ATTR_DEFAULT[, int is_history = K2H_ATTR_DEFAULT[, int is_encrypt = K2H_ATTR_DEFAULT, string passfile = NULL[, int is_expire = K2H_ATTR_DEFAULT, int expire = 0]]]]) - Set common attributes */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_common_attr_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, is_mtime) -ZEND_ARG_INFO(0, is_history) -ZEND_ARG_INFO(0, is_encrypt) -ZEND_ARG_INFO(0, passfile) -ZEND_ARG_INFO(0, is_expire) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_common_attr */ - -/* {{{ proto bool k2hpx_clean_common_attr(resource k2hhandle handle) - Clear common attributes setting */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_clean_common_attr_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_clean_common_attr */ - -/* {{{ proto bool k2hpx_add_attr_plugin_library(resource k2hhandle handle, string libfile) - Add plugin attribute module */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_add_attr_plugin_library_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, libfile) -ZEND_END_ARG_INFO() -/* }}} k2hpx_add_attr_plugin_library */ - -/* {{{ proto bool k2hpx_add_attr_crypt_pass(resource k2hhandle handle, string encpass[, bool is_default_encrypt = false]) - Add encrypt pass phrase */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_add_attr_crypt_pass_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, encpass) -ZEND_ARG_INFO(0, is_default_encrypt) -ZEND_END_ARG_INFO() -/* }}} k2hpx_add_attr_crypt_pass */ - -/* {{{ proto bool k2hpx_print_attr_version(resource k2hhandle handle[, stream output = NULL]) - Print all attributes version */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_print_attr_version_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_print_attr_version */ - -/* {{{ proto bool k2hpx_print_attr_information(resource k2hhandle handle[, stream output = NULL]) - Print attributes information */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_print_attr_information_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_print_attr_information */ - -/* {{{ proto string k2hpx_get_value(resource k2hhandle handle, string key[, string subkey = NULL[, bool attrcheck = true[, string pass = NULL]]]) - Get value */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_get_value_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_ARG_INFO(0, attrcheck) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_get_value */ - -/* {{{ proto array k2hpx_get_subkeys(resource k2hhandle handle, string key[, bool attrcheck = true]) - Get subkeys */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_get_subkeys_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrcheck) -ZEND_END_ARG_INFO() -/* }}} k2hpx_get_subkeys */ - -/* {{{ proto array k2hpx_get_attrs(resource k2hhandle handle, string key) - Get attribute key names */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_get_attrs_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_get_attrs */ - -/* {{{ proto string k2hpx_get_attr_value(resource k2hhandle handle, string key, string attrkey) - Get attribute value */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_get_attr_value_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrkey) -ZEND_END_ARG_INFO() -/* }}} k2hpx_get_attr_value */ - -/* {{{ proto bool k2hpx_set_value(resource k2hhandle handle, string key, string value[, string subkey = NULL[, string pass=NULL[, int expire=0]]]) - Set value */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_set_value_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, value) -ZEND_ARG_INFO(0, subkey) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_set_value */ - -/* {{{ proto bool k2hpx_add_subkey(resource k2hhandle handle, string key, string subkey) - Set subkey */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_add_subkey_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_END_ARG_INFO() -/* }}} k2hpx_add_subkey */ - -/* {{{ proto bool k2hpx_add_subkeys(resource k2hhandle handle, string key, array& subkeys) - Set subkeys */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_add_subkeys_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_ARRAY_INFO(1, subkeys, 1) -ZEND_END_ARG_INFO() -/* }}} k2hpx_add_subkeys */ - -/* {{{ proto bool k2hpx_add_attr(resource k2hhandle handle, string key, string attrkey, string attrval) - Add attribute */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_add_attr_arg_info, 0, ZEND_RETURN_VALUE, 4) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrkey) -ZEND_ARG_INFO(0, attrval) -ZEND_END_ARG_INFO() -/* }}} k2hpx_add_attr */ - -/* {{{ proto bool k2hpx_remove_all(resource k2hhandle handle, string key) - remove key */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_remove_all_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_remove_all */ - -/* {{{ proto bool k2hpx_remove(resource k2hhandle handle, string key[, string subkey = NULL]) - remove key or subkey in key */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_remove_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_END_ARG_INFO() -/* }}} k2hpx_remove */ - -/* {{{ proto bool k2hpx_rename(resource k2hhandle handle, string key, string newkey) - rename key name */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_rename_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, newkey) -ZEND_END_ARG_INFO() -/* }}} k2hpx_rename */ - -/* {{{ proto resource k2hfindhandle k2hpx_find_first(resource k2hhandle handle[, string key = NULL]) - Get resource k2hfindhandle handle for searching key(or subkey) */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_first_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_first */ - -/* {{{ proto resource k2hfindhandle k2hpx_find_next(resource k2hfindhandle findhandle) - Get next resource k2hfindhandle handle for searching key(or subkey) */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_next_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, findhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_next */ - -/* {{{ proto bool k2hpx_find_free(resource k2hfindhandle findhandle) - close resource k2hfindhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_free_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, findhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_free */ - -/* {{{ proto string k2hpx_find_get_key(resource k2hfindhandle findhandle) - Get key by resource k2hfindhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_get_key_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, findhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_get_key */ - -/* {{{ proto string k2hpx_find_get_value(resource k2hfindhandle findhandle) - Get value by resource k2hfindhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_get_value_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, findhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_get_value */ - -/* {{{ proto array k2hpx_find_get_subkeys(resource k2hfindhandle findhandle) - Get subkeys by resource k2hfindhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_find_get_subkeys_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, findhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_find_get_subkeys */ - -/* {{{ proto resource k2hdahandle k2hpx_da_get_handle(resource k2hhandle handle, string key, int mode) - Get key handle for accessing directly */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_handle_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, mode) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_handle */ - -/* {{{ proto resource k2hdahandle k2hpx_da_get_handle_read(resource k2hhandle handle, string key) - Get key handle for readable accessing directly */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_handle_read_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_handle_read */ - -/* {{{ proto resource k2hdahandle k2hpx_da_get_handle_write(resource k2hhandle handle, string key) - Get key handle for writable accessing directly */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_handle_write_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_handle_write */ - -/* {{{ proto resource k2hdahandle k2hpx_da_get_handle_rw(resource k2hhandle handle, string key) - Get key handle for readable and writable accessing directly */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_handle_rw_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_handle_rw */ - -/* {{{ proto bool k2hpx_da_free(resource k2hdahandle dahandle) - close key handle for accessing directly */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_free_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_free */ - -/* {{{ proto int k2hpx_da_get_length(resource k2hdahandle dahandle) - Get value length */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_length_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_length */ - -/* {{{ proto array k2hpx_da_get_offset(resource k2hdahandle dahandle) - Get offset for reading/writing pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_offset_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_offset */ - -/* {{{ proto int k2hpx_da_get_read_offset(resource k2hdahandle dahandle) - Get offset for reading pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_read_offset_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_read_offset */ - -/* {{{ proto int k2hpx_da_get_write_offset(resource k2hdahandle dahandle) - Get offset for reading pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_write_offset_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_write_offset */ - -/* {{{ proto bool k2hpx_da_set_offset(resource k2hdahandle dahandle, array& offsets) - Set offset for reading/writing pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_set_offset_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_ARRAY_INFO(1, offsets, 1) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_set_offset */ - -/* {{{ proto bool k2hpx_da_set_read_offset(resource k2hdahandle dahandle, int offset) - Set offset for reading pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_set_read_offset_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_set_read_offset */ - -/* {{{ proto bool k2hpx_da_set_write_offset(resource k2hdahandle dahandle, int offset) - Set offset for writing pos */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_set_write_offset_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_set_write_offset */ - -/* {{{ proto string k2hpx_da_get_value(resource k2hdahandle dahandle[, int offset = -1]) - Get value from offset */ - -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_value_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_value */ - -/* {{{ proto bool k2hpx_da_get_value_to_file(resource k2hdahandle dahandle, string filepath[, int length = -1[, int offset = -1]]) - Get value into the file from offset */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_get_value_to_file_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, length) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_get_value_to_file */ - -/* {{{ proto bool k2hpx_da_set_value(resource k2hdahandle dahandle, string value[, int offset = -1]) - Set value from offset */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_set_value_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, value) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_set_value */ - -/* {{{ proto bool k2hpx_da_set_value_from_file(resource k2hdahandle dahandle, string filepath[, int length = -1[, int offset = -1]]) - Set value from the file into offset */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_da_set_value_from_file_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, dahandle_res) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, length) -ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() -/* }}} k2hpx_da_set_value_from_file */ - -/* {{{ proto resource k2hqhandle k2hpx_q_handle(resource k2hhandle handle[, bool is_fifo = true[, string prefix = NULL]]) - Get resource k2hqhandle for k2hash */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_handle_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_handle */ - -/* {{{ proto bool k2hpx_q_free(resource k2hqhandle qhandle) - close resource k2hqhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_free_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_free */ - -/* {{{ proto bool k2hpx_q_empty(resource k2hqhandle qhandle) - Check queue empty */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_empty_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_empty */ - -/* {{{ proto int k2hpx_q_count(resource k2hqhandle qhandle) - Get data count in queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_count_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_count */ - -/* {{{ proto string k2hpx_q_read(resource k2hqhandle qhandle[, int pos = 0[, string pass=NULL]]) - Get data from queue at position without removing */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_read_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_ARG_INFO(0, pos) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_read */ - -/* {{{ proto bool k2hpx_q_push(resource k2hqhandle qhandle, string datavalue[, string pass=NULL[, int expire=0]]) - push data to queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_push_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, qhandle) -ZEND_ARG_INFO(0, datavalue) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_push */ - -/* {{{ proto string k2hpx_q_pop(resource k2hqhandle qhandle[, string pass=NULL]) - pop data from queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_pop_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_pop */ - -/* {{{ proto bool k2hpx_q_remove(resource k2hqhandle qhandle, int count[, string pass=NULL]) - remove count data from queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_remove_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, qhandle) -ZEND_ARG_INFO(0, count) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_remove */ - -/* {{{ proto bool k2hpx_q_dump(resource k2hqhandle qhandle[, stream output = NULL]) - dump queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_q_dump_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, qhandle) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_q_dump */ - -/* {{{ proto resource k2hkeyqhandle k2hpx_keyq_handle(resource k2hhandle handle[, bool is_fifo = true[, string prefix = NULL]]) - Get resource k2hkeyqhandle for k2hash */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_handle_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_handle */ - -/* {{{ proto bool k2hpx_keyq_free(resource k2hkeyqhandle keyqhandle) - close resource k2hkeyqhandle handle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_free_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_free */ - -/* {{{ proto bool k2hpx_keyq_empty(resource k2hkeyqhandle keyqhandle) - Check key queue empty */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_empty_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_empty */ - -/* {{{ proto int k2hpx_keyq_count(resource k2hkeyqhandle keyqhandle) - Get data count in key queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_count_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_count */ - -/* {{{ proto array k2hpx_keyq_read(resource k2hkeyqhandle keyqhandle[, int pos = 0[, string pass=NULL]]) - Get key and value from key queue at position without removing. */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_read_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_ARG_INFO(0, pos) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_read */ - -/* {{{ proto bool k2hpx_keyq_push(resource k2hkeyqhandle keyqhandle, string key, string value[, string pass=NULL[, int expire=0]]) - push key and value to key queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_push_arg_info, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, value) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_push */ - -/* {{{ proto array k2hpx_keyq_pop(resource k2hkeyqhandle keyqhandle[, string pass=NULL]) - pop key and value from queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_pop_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_pop */ - -/* {{{ proto bool k2hpx_keyq_remove(resource k2hkeyqhandle keyqhandle, int count[, string pass=NULL]) - remove count data from queue by k2hkeyqhandle */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_remove_arg_info, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_ARG_INFO(0, count) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_remove */ - -/* {{{ proto bool k2hpx_keyq_dump(resource k2hkeyqhandle keyqhandle[, stream output = NULL]) - dump key queue */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_keyq_dump_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, keyqhandle) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_keyq_dump */ - -/* {{{ proto bool k2hpx_dump_head(resource k2hhandle handle[, stream output = NULL]) - dump k2hash internal head area */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_dump_head_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_dump_head */ - -/* {{{ proto bool k2hpx_dump_keytable(resource k2hhandle handle[, stream output = NULL]) - dump k2hash internal keytable area */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_dump_keytable_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_dump_keytable */ - -/* {{{ proto bool k2hpx_dump_full_keytable(resource k2hhandle handle[, stream output = NULL]) - dump k2hash internal full keytable area */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_dump_full_keytable_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_dump_full_keytable */ - -/* {{{ proto bool k2hpx_dump_elementtable(resource k2hhandle handle[, stream output = NULL]) - dump k2hash internal elementtable area */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_dump_elementtable_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_dump_elementtable */ - -/* {{{ proto bool k2hpx_dump_full(resource k2hhandle handle[, stream output = NULL]) - dump k2hash internal hole area */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_dump_full_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_dump_full */ - -/* {{{ proto bool k2hpx_print_state(resource k2hhandle handle[, stream output = NULL]) - Print k2hash data status */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_print_state_arg_info, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_print_state */ - -/* {{{ proto bool k2hpx_print_version([stream output = NULL]) - Print k2hash library version */ -ZEND_BEGIN_ARG_INFO_EX(k2hpx_print_version_arg_info, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() -/* }}} k2hpx_print_version */ - -/* {{{ proto bool create(string filepath[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]) - K2hash::create method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_create, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} create */ - -/* {{{ proto bool open(string filepath, bool readonly[, bool removefile = false[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]]) - K2hash::open method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_open, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, readonly) -ZEND_ARG_INFO(0, removefile) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} open */ - -/* {{{ proto bool openRW(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - K2hash::openRW method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_openRW, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} openRW */ - -/* {{{ proto bool openRO(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - K2hash::openRO method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_openRO, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} openRO */ - -/* {{{ proto bool openTempfile(string filepath[, bool fullmap = true[, int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]]) - K2hash::openTempfile method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_openTempfile, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, fullmap) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} openTempfile */ - -/* {{{ proto bool openMem([int maskbitcnt = K2H_DEF_MASK_BIT[, int cmaskbitcnt = K2H_DEF_CMASK_BIT[, int maxelementcnt = K2H_DEF_ELEMENT[, int pagesize = K2H_DEF_PAGESIZE]]]]) - K2hash::openMem method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_openMem, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, maskbitcnt) -ZEND_ARG_INFO(0, cmaskbitcnt) -ZEND_ARG_INFO(0, maxelementcnt) -ZEND_ARG_INFO(0, pagesize) -ZEND_END_ARG_INFO() - -/* }}} openMem */ - -/* {{{ proto bool close([int waitms = 0]) - K2hash::close method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_close, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, waitms) -ZEND_END_ARG_INFO() - -/* }}} close */ - -/* {{{ proto bool transaction(bool enable[, string transfile = NULL[, string prefix = NULL[, string param = NULL[, int expire = 0]]]]) - K2hash::transaction method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_transaction, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, enable) -ZEND_ARG_INFO(0, transfile) -ZEND_ARG_INFO(0, prefix) -ZEND_ARG_INFO(0, param) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} transaction */ - -/* {{{ proto bool enableTransaction([string transfile = NULL[, string prefix = NULL[, string param = NULL[, int expire = 0]]]]) - K2hash::enableTransaction method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_enableTransaction, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, transfile) -ZEND_ARG_INFO(0, prefix) -ZEND_ARG_INFO(0, param) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} enableTransaction */ - -/* {{{ proto bool disableTransaction() - K2hash::disableTransaction method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_disableTransaction, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} disableTransaction */ - -/* {{{ proto int getTransactionThreadPool() - K2hash::getTransactionThreadPool method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getTransactionThreadPool, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} getTransactionThreadPool */ - -/* {{{ proto bool setTransactionThreadPool(int count) - K2hash::getTransactionThreadPool method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_setTransactionThreadPool, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, count) -ZEND_END_ARG_INFO() - -/* }}} setTransactionThreadPool */ - -/* {{{ proto bool unsetTransactionThreadPool() - K2hash::unsetTransactionThreadPool method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_unsetTransactionThreadPool, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} unsetTransactionThreadPool */ - -/* {{{ proto bool putArchive(string filepath[, bool errskip = true]) - K2hash::putArchive method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_putArchive, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, errskip) -ZEND_END_ARG_INFO() - -/* }}} putArchive */ - -/* {{{ proto bool loadArchive(string filepath[, bool errskip = true]) - K2hash::loadArchive method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_loadArchive, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, filepath) -ZEND_ARG_INFO(0, errskip) -ZEND_END_ARG_INFO() - -/* }}} loadArchive */ - -/* {{{ proto bool setCommonAttribute([int is_mtime = K2H_ATTR_DEFAULT[, int is_history = K2H_ATTR_DEFAULT[, int is_encrypt = K2H_ATTR_DEFAULT, string passfile = NULL[, int is_expire = K2H_ATTR_DEFAULT, int expire = 0]]]]) - K2hash::setCommonAttribute method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_setCommonAttribute, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, is_mtime) -ZEND_ARG_INFO(0, is_history) -ZEND_ARG_INFO(0, is_encrypt) -ZEND_ARG_INFO(0, passfile) -ZEND_ARG_INFO(0, is_expire) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} setCommonAttribute */ - -/* {{{ proto bool cleanCommonAttribute() - K2hash::cleanCommonAttribute method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_cleanCommonAttribute, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} cleanCommonAttribute */ - -/* {{{ proto bool addAttrPluginLib(string libfile) - K2hash::addAttrPluginLib method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_addAttrPluginLib, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, libfile) -ZEND_END_ARG_INFO() - -/* }}} addAttrPluginLib */ - -/* {{{ proto bool addAttrCryptPass(string encpass[, bool is_default_encrypt = false]) - K2hash::addAttrCryptPass method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_addAttrCryptPass, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, encpass) -ZEND_ARG_INFO(0, is_default_encrypt) -ZEND_END_ARG_INFO() - -/* }}} addAttrCryptPass */ - -/* {{{ proto bool getAttrVersionInfos([stream output = NULL]) - K2hash::getAttrVersionInfos method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getAttrVersionInfos, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} getAttrVersionInfos */ - -/* {{{ proto bool getAttrInfos([stream output = NULL]) - K2hash::getAttrInfos method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getAttrInfos, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} getAttrInfos */ - -/* {{{ proto string getValue(string key[, string subkey = NULL[, bool attrcheck = true[, string pass = NULL]]]) - K2hash::getValue method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getValue, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_ARG_INFO(0, attrcheck) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} getValue */ - -/* {{{ proto array getSubkeys(string key[, bool attrcheck = true]) - K2hash::getSubkeys method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getSubkeys, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrcheck) -ZEND_END_ARG_INFO() - -/* }}} getSubkeys */ - -/* {{{ proto array getAttrs(string key) - K2hash::getAttrs method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getAttrs, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -/* }}} getAttrs */ - -/* {{{ proto string getAttrValue(string key, string attrkey) - K2hash::getAttrValue method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getAttrValue, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrkey) -ZEND_END_ARG_INFO() -/* }}} getAttrValue */ - -/* {{{ proto bool setValue(string key, string value[, string subkey = NULL[, string pass=NULL[, int expire=0]]]) - K2hash::setValue method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_setValue, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, value) -ZEND_ARG_INFO(0, subkey) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} setValue */ - -/* {{{ proto bool addSubkey(string key, string subkey) - K2hash::addSubkey method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_addSubkey, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_END_ARG_INFO() - -/* }}} addSubkey */ - -/* {{{ proto bool addSubkeys(string key, array &subkeys) - K2hash::addSubkeys method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_addSubkeys, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_ARRAY_INFO(1, subkeys, 1) -ZEND_END_ARG_INFO() - -/* }}} addSubkeys */ - -/* {{{ proto bool addAttr(string key, string attrkey, string attrval) - K2hash::addAttr method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_addAttr, 0, ZEND_RETURN_VALUE, 3) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, attrkey) -ZEND_ARG_INFO(0, attrval) -ZEND_END_ARG_INFO() - -/* }}} addAttr */ - -/* {{{ proto bool removeAll(string key) - K2hash::removeAll method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_removeAll, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -/* }}} removeAll */ - -/* {{{ proto bool remove(string key[, string subkey = NULL]) - K2hash::remove method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_remove, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, subkey) -ZEND_END_ARG_INFO() - -/* }}} remove */ - -/* {{{ proto bool rename(string key, string newkey) - K2hash::rename method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_rename, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, newkey) -ZEND_END_ARG_INFO() - -/* }}} rename */ - -/* {{{ proto object getIterator([string key = NULL]) - K2hash::getIterator method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getIterator, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -/* }}} getIterator */ - -/* {{{ proto stream getStream(string key, string mode) - K2hash::getStream method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getStream, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, mode) -ZEND_END_ARG_INFO() - -/* }}} getStream */ - -/* {{{ proto object getQueue([bool is_fifo = true[, string prefix = NULL]]) - K2hash::getQueue method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getQueue, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() - -/* }}} getQueue */ - -/* {{{ proto object getKeyQueue([bool is_fifo = true[, string prefix = NULL]]) - K2hash::getKeyQueue method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_getKeyQueue, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() - -/* }}} getKeyQueue */ - -/* {{{ proto bool dumpHead([stream output = NULL]) - K2hash::dumpHead method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_dumpHead, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dumpHead */ - -/* {{{ proto bool dumpKeytable([stream output = NULL]) - K2hash::dumpKeytable method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_dumpKeytable, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dumpKeytable */ - -/* {{{ proto bool dumpFullKeytable([stream output = NULL]) - K2hash::dumpFullKeytable method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_dumpFullKeytable, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dumpFullKeytable */ - -/* {{{ proto bool dumpElementtable([stream output = NULL]) - K2hash::dumpElementtable method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_dumpElementtable, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dumpElementtable */ - -/* {{{ proto bool dumpFull([stream output = NULL]) - K2hash::dumpFull method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_dumpFull, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dumpFull */ - -/* {{{ proto bool printState([stream output = NULL]) - K2hash::printState method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_printState, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} printState */ - -/* {{{ proto bool printVersion([stream output = NULL]) - K2hash::printVersion method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hash_printVersion, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} printVersion */ - -/* {{{ proto void __construct(resource k2hhandle handle[, string key = NULL]) - K2hIterator::__construct method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator___construct, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -/* }}} __construct */ - -/* {{{ proto string current() - K2hIterator::current method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator_current, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} current */ - -/* {{{ proto string key() - K2hIterator::key method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator_key, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} key */ - -/* {{{ proto void next() - K2hIterator::next method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator_next, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} next */ - -/* {{{ proto void rewind() - K2hIterator::rewind method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator_rewind, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} rewind */ - -/* {{{ proto bool valid() - K2hIterator::valid method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hIterator_valid, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} valid */ - -/* {{{ proto void __construct(resource k2hhandle handle[, bool is_fifo = true[, string prefix = NULL]]) - K2hKeyQueue::__construct method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue___construct, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() - -/* }}} __construct */ - -/* {{{ proto bool isEmpty() - K2hKeyQueue::isEmpty method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_isEmpty, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} isEmpty */ - -/* {{{ proto int count() - K2hKeyQueue::count method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_count, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} count */ - -/* {{{ proto array read([int pos = 0[, string pass=NULL]]) - K2hKeyQueue::read method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_read, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, pos) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} read */ - -/* {{{ proto bool push(string key, string value[, string pass=NULL[, int expire=0]]) - K2hKeyQueue::push method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_push, 0, ZEND_RETURN_VALUE, 2) -ZEND_ARG_INFO(0, key) -ZEND_ARG_INFO(0, value) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} push */ - -/* {{{ proto array pop([string pass=NULL]) - K2hKeyQueue::pop method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_pop, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} pop */ - -/* {{{ proto bool remove(int count[, string pass=NULL]) - K2hKeyQueue::remove method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_remove, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, count) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} remove */ - -/* {{{ proto bool dump([stream output = NULL]) - K2hKeyQueue::dump method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hKeyQueue_dump, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dump */ - -/* {{{ proto void __construct(resource k2hhandle handle[, bool is_fifo = true[, string prefix = NULL]]) - K2hQueue::__construct method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue___construct, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, handle_res) -ZEND_ARG_INFO(0, is_fifo) -ZEND_ARG_INFO(0, prefix) -ZEND_END_ARG_INFO() - -/* }}} __construct */ - -/* {{{ proto bool isEmpty() - K2hQueue::isEmpty method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_isEmpty, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} isEmpty */ - -/* {{{ proto int count() - K2hQueue::count method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_count, 0, ZEND_RETURN_VALUE, 0) -ZEND_END_ARG_INFO() - -/* }}} count */ - -/* {{{ proto string read([int pos = 0[, string pass=NULL]]) - K2hQueue::read method */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_read, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, pos) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} read */ - -/* {{{ proto bool push(string datavalue[, string pass=NULL[, int expire=0]]) - K2hQueue::push method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_push, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, datavalue) -ZEND_ARG_INFO(0, pass) -ZEND_ARG_INFO(0, expire) -ZEND_END_ARG_INFO() - -/* }}} push */ - -/* {{{ proto string pop([string pass=NULL]) - K2hQueue::pop method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_pop, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} pop */ - -/* {{{ proto bool remove(int count[, string pass=NULL]) - K2hQueue::remove method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_remove, 0, ZEND_RETURN_VALUE, 1) -ZEND_ARG_INFO(0, count) -ZEND_ARG_INFO(0, pass) -ZEND_END_ARG_INFO() - -/* }}} remove */ - -/* {{{ proto bool dump([stream output = NULL]) - K2hQueue::dump method */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_K2hQueue_dump, 0, ZEND_RETURN_VALUE, 0) -ZEND_ARG_INFO(0, output) -ZEND_END_ARG_INFO() - -/* }}} dump */ - -ZEND_FUNCTION(k2hpx_bump_debug_level); -ZEND_FUNCTION(k2hpx_set_debug_level_silent); -ZEND_FUNCTION(k2hpx_set_debug_level_error); -ZEND_FUNCTION(k2hpx_set_debug_level_warning); -ZEND_FUNCTION(k2hpx_set_debug_level_message); -ZEND_FUNCTION(k2hpx_set_debug_file); -ZEND_FUNCTION(k2hpx_unset_debug_file); -ZEND_FUNCTION(k2hpx_load_debug_env); -ZEND_FUNCTION(k2hpx_load_hash_library); -ZEND_FUNCTION(k2hpx_unload_hash_library); -ZEND_FUNCTION(k2hpx_load_transaction_library); -ZEND_FUNCTION(k2hpx_unload_transaction_library); -ZEND_FUNCTION(k2hpx_create); -ZEND_FUNCTION(k2hpx_open); -ZEND_FUNCTION(k2hpx_open_rw); -ZEND_FUNCTION(k2hpx_open_ro); -ZEND_FUNCTION(k2hpx_open_tempfile); -ZEND_FUNCTION(k2hpx_open_mem); -ZEND_FUNCTION(k2hpx_close); -ZEND_FUNCTION(k2hpx_transaction); -ZEND_FUNCTION(k2hpx_enable_transaction); -ZEND_FUNCTION(k2hpx_disable_transaction); -ZEND_FUNCTION(k2hpx_get_transaction_thread_pool); -ZEND_FUNCTION(k2hpx_set_transaction_thread_pool); -ZEND_FUNCTION(k2hpx_unset_transaction_thread_pool); -ZEND_FUNCTION(k2hpx_put_archive); -ZEND_FUNCTION(k2hpx_load_archive); -ZEND_FUNCTION(k2hpx_set_common_attr); -ZEND_FUNCTION(k2hpx_clean_common_attr); -ZEND_FUNCTION(k2hpx_add_attr_plugin_library); -ZEND_FUNCTION(k2hpx_add_attr_crypt_pass); -ZEND_FUNCTION(k2hpx_print_attr_version); -ZEND_FUNCTION(k2hpx_print_attr_information); -ZEND_FUNCTION(k2hpx_get_value); -ZEND_FUNCTION(k2hpx_get_subkeys); -ZEND_FUNCTION(k2hpx_get_attrs); -ZEND_FUNCTION(k2hpx_get_attr_value); -ZEND_FUNCTION(k2hpx_set_value); -ZEND_FUNCTION(k2hpx_add_subkey); -ZEND_FUNCTION(k2hpx_add_subkeys); -ZEND_FUNCTION(k2hpx_add_attr); -ZEND_FUNCTION(k2hpx_remove_all); -ZEND_FUNCTION(k2hpx_remove); -ZEND_FUNCTION(k2hpx_rename); -ZEND_FUNCTION(k2hpx_find_first); -ZEND_FUNCTION(k2hpx_find_next); -ZEND_FUNCTION(k2hpx_find_free); -ZEND_FUNCTION(k2hpx_find_get_key); -ZEND_FUNCTION(k2hpx_find_get_value); -ZEND_FUNCTION(k2hpx_find_get_subkeys); -ZEND_FUNCTION(k2hpx_da_get_handle); -ZEND_FUNCTION(k2hpx_da_get_handle_read); -ZEND_FUNCTION(k2hpx_da_get_handle_write); -ZEND_FUNCTION(k2hpx_da_get_handle_rw); -ZEND_FUNCTION(k2hpx_da_free); -ZEND_FUNCTION(k2hpx_da_get_length); -ZEND_FUNCTION(k2hpx_da_get_offset); -ZEND_FUNCTION(k2hpx_da_get_read_offset); -ZEND_FUNCTION(k2hpx_da_get_write_offset); -ZEND_FUNCTION(k2hpx_da_set_offset); -ZEND_FUNCTION(k2hpx_da_set_read_offset); -ZEND_FUNCTION(k2hpx_da_set_write_offset); -ZEND_FUNCTION(k2hpx_da_get_value); -ZEND_FUNCTION(k2hpx_da_get_value_to_file); -ZEND_FUNCTION(k2hpx_da_set_value); -ZEND_FUNCTION(k2hpx_da_set_value_from_file); -ZEND_FUNCTION(k2hpx_q_handle); -ZEND_FUNCTION(k2hpx_q_free); -ZEND_FUNCTION(k2hpx_q_empty); -ZEND_FUNCTION(k2hpx_q_count); -ZEND_FUNCTION(k2hpx_q_read); -ZEND_FUNCTION(k2hpx_q_push); -ZEND_FUNCTION(k2hpx_q_pop); -ZEND_FUNCTION(k2hpx_q_remove); -ZEND_FUNCTION(k2hpx_q_dump); -ZEND_FUNCTION(k2hpx_keyq_handle); -ZEND_FUNCTION(k2hpx_keyq_free); -ZEND_FUNCTION(k2hpx_keyq_empty); -ZEND_FUNCTION(k2hpx_keyq_count); -ZEND_FUNCTION(k2hpx_keyq_read); -ZEND_FUNCTION(k2hpx_keyq_push); -ZEND_FUNCTION(k2hpx_keyq_pop); -ZEND_FUNCTION(k2hpx_keyq_remove); -ZEND_FUNCTION(k2hpx_keyq_dump); -ZEND_FUNCTION(k2hpx_dump_head); -ZEND_FUNCTION(k2hpx_dump_keytable); -ZEND_FUNCTION(k2hpx_dump_full_keytable); -ZEND_FUNCTION(k2hpx_dump_elementtable); -ZEND_FUNCTION(k2hpx_dump_full); -ZEND_FUNCTION(k2hpx_print_state); -ZEND_FUNCTION(k2hpx_print_version); -ZEND_METHOD(K2hash, create); -ZEND_METHOD(K2hash, open); -ZEND_METHOD(K2hash, openRW); -ZEND_METHOD(K2hash, openRO); -ZEND_METHOD(K2hash, openTempfile); -ZEND_METHOD(K2hash, openMem); -ZEND_METHOD(K2hash, close); -ZEND_METHOD(K2hash, transaction); -ZEND_METHOD(K2hash, enableTransaction); -ZEND_METHOD(K2hash, disableTransaction); -ZEND_METHOD(K2hash, getTransactionThreadPool); -ZEND_METHOD(K2hash, setTransactionThreadPool); -ZEND_METHOD(K2hash, unsetTransactionThreadPool); -ZEND_METHOD(K2hash, putArchive); -ZEND_METHOD(K2hash, loadArchive); -ZEND_METHOD(K2hash, setCommonAttribute); -ZEND_METHOD(K2hash, cleanCommonAttribute); -ZEND_METHOD(K2hash, addAttrPluginLib); -ZEND_METHOD(K2hash, addAttrCryptPass); -ZEND_METHOD(K2hash, getAttrVersionInfos); -ZEND_METHOD(K2hash, getAttrInfos); -ZEND_METHOD(K2hash, getValue); -ZEND_METHOD(K2hash, getSubkeys); -ZEND_METHOD(K2hash, getAttrs); -ZEND_METHOD(K2hash, getAttrValue); -ZEND_METHOD(K2hash, setValue); -ZEND_METHOD(K2hash, addSubkey); -ZEND_METHOD(K2hash, addSubkeys); -ZEND_METHOD(K2hash, addAttr); -ZEND_METHOD(K2hash, removeAll); -ZEND_METHOD(K2hash, remove); -ZEND_METHOD(K2hash, rename); -ZEND_METHOD(K2hash, getIterator); -ZEND_METHOD(K2hash, getStream); -ZEND_METHOD(K2hash, getQueue); -ZEND_METHOD(K2hash, getKeyQueue); -ZEND_METHOD(K2hash, dumpHead); -ZEND_METHOD(K2hash, dumpKeytable); -ZEND_METHOD(K2hash, dumpFullKeytable); -ZEND_METHOD(K2hash, dumpElementtable); -ZEND_METHOD(K2hash, dumpFull); -ZEND_METHOD(K2hash, printState); -ZEND_METHOD(K2hash, printVersion); -ZEND_METHOD(K2hQueue, __construct); -ZEND_METHOD(K2hQueue, isEmpty); -ZEND_METHOD(K2hQueue, count); -ZEND_METHOD(K2hQueue, read); -ZEND_METHOD(K2hQueue, push); -ZEND_METHOD(K2hQueue, pop); -ZEND_METHOD(K2hQueue, remove); -ZEND_METHOD(K2hQueue, dump); -ZEND_METHOD(K2hKeyQueue, __construct); -ZEND_METHOD(K2hKeyQueue, isEmpty); -ZEND_METHOD(K2hKeyQueue, count); -ZEND_METHOD(K2hKeyQueue, read); -ZEND_METHOD(K2hKeyQueue, push); -ZEND_METHOD(K2hKeyQueue, pop); -ZEND_METHOD(K2hKeyQueue, remove); -ZEND_METHOD(K2hKeyQueue, dump); -ZEND_METHOD(K2hIterator, __construct); -ZEND_METHOD(K2hIterator, current); -ZEND_METHOD(K2hIterator, key); -ZEND_METHOD(K2hIterator, next); -ZEND_METHOD(K2hIterator, rewind); -ZEND_METHOD(K2hIterator, valid); - -/* {{{ k2hash_phpext_functions[] - * - * Every user visible function must have an entry in k2hash_phpext_functions[]. - */ -static const zend_function_entry ext_functions[] = { - PHP_FE(k2hpx_bump_debug_level, k2hpx_bump_debug_level_arg_info) - PHP_FE(k2hpx_set_debug_level_silent, k2hpx_set_debug_level_silent_arg_info) - PHP_FE(k2hpx_set_debug_level_error, k2hpx_set_debug_level_error_arg_info) - PHP_FE(k2hpx_set_debug_level_warning, k2hpx_set_debug_level_warning_arg_info) - PHP_FE(k2hpx_set_debug_level_message, k2hpx_set_debug_level_message_arg_info) - PHP_FE(k2hpx_set_debug_file, k2hpx_set_debug_file_arg_info) - PHP_FE(k2hpx_unset_debug_file, k2hpx_unset_debug_file_arg_info) - PHP_FE(k2hpx_load_debug_env, k2hpx_load_debug_env_arg_info) - PHP_FE(k2hpx_load_hash_library, k2hpx_load_hash_library_arg_info) - PHP_FE(k2hpx_unload_hash_library, k2hpx_unload_hash_library_arg_info) - PHP_FE(k2hpx_load_transaction_library, k2hpx_load_transaction_library_arg_info) - PHP_FE(k2hpx_unload_transaction_library, k2hpx_unload_transaction_library_arg_info) - PHP_FE(k2hpx_create , k2hpx_create_arg_info) - PHP_FE(k2hpx_open , k2hpx_open_arg_info) - PHP_FE(k2hpx_open_rw , k2hpx_open_rw_arg_info) - PHP_FE(k2hpx_open_ro , k2hpx_open_ro_arg_info) - PHP_FE(k2hpx_open_tempfile , k2hpx_open_tempfile_arg_info) - PHP_FE(k2hpx_open_mem , k2hpx_open_mem_arg_info) - PHP_FE(k2hpx_close , k2hpx_close_arg_info) - PHP_FE(k2hpx_transaction , k2hpx_transaction_arg_info) - PHP_FE(k2hpx_enable_transaction, k2hpx_enable_transaction_arg_info) - PHP_FE(k2hpx_disable_transaction, k2hpx_disable_transaction_arg_info) - PHP_FE(k2hpx_get_transaction_thread_pool, k2hpx_get_transaction_thread_pool_arg_info) - PHP_FE(k2hpx_set_transaction_thread_pool, k2hpx_set_transaction_thread_pool_arg_info) - PHP_FE(k2hpx_unset_transaction_thread_pool, k2hpx_unset_transaction_thread_pool_arg_info) - PHP_FE(k2hpx_put_archive , k2hpx_put_archive_arg_info) - PHP_FE(k2hpx_load_archive , k2hpx_load_archive_arg_info) - PHP_FE(k2hpx_set_common_attr, k2hpx_set_common_attr_arg_info) - PHP_FE(k2hpx_clean_common_attr, k2hpx_clean_common_attr_arg_info) - PHP_FE(k2hpx_add_attr_plugin_library, k2hpx_add_attr_plugin_library_arg_info) - PHP_FE(k2hpx_add_attr_crypt_pass, k2hpx_add_attr_crypt_pass_arg_info) - PHP_FE(k2hpx_print_attr_version, k2hpx_print_attr_version_arg_info) - PHP_FE(k2hpx_print_attr_information, k2hpx_print_attr_information_arg_info) - PHP_FE(k2hpx_get_value , k2hpx_get_value_arg_info) - PHP_FE(k2hpx_get_subkeys , k2hpx_get_subkeys_arg_info) - PHP_FE(k2hpx_get_attrs , k2hpx_get_attrs_arg_info) - PHP_FE(k2hpx_get_attr_value, k2hpx_get_attr_value_arg_info) - PHP_FE(k2hpx_set_value , k2hpx_set_value_arg_info) - PHP_FE(k2hpx_add_subkey , k2hpx_add_subkey_arg_info) - PHP_FE(k2hpx_add_subkeys , k2hpx_add_subkeys_arg_info) - PHP_FE(k2hpx_add_attr , k2hpx_add_attr_arg_info) - PHP_FE(k2hpx_remove_all , k2hpx_remove_all_arg_info) - PHP_FE(k2hpx_remove , k2hpx_remove_arg_info) - PHP_FE(k2hpx_rename , k2hpx_rename_arg_info) - PHP_FE(k2hpx_find_first , k2hpx_find_first_arg_info) - PHP_FE(k2hpx_find_next , k2hpx_find_next_arg_info) - PHP_FE(k2hpx_find_free , k2hpx_find_free_arg_info) - PHP_FE(k2hpx_find_get_key , k2hpx_find_get_key_arg_info) - PHP_FE(k2hpx_find_get_value, k2hpx_find_get_value_arg_info) - PHP_FE(k2hpx_find_get_subkeys, k2hpx_find_get_subkeys_arg_info) - PHP_FE(k2hpx_da_get_handle , k2hpx_da_get_handle_arg_info) - PHP_FE(k2hpx_da_get_handle_read, k2hpx_da_get_handle_read_arg_info) - PHP_FE(k2hpx_da_get_handle_write, k2hpx_da_get_handle_write_arg_info) - PHP_FE(k2hpx_da_get_handle_rw, k2hpx_da_get_handle_rw_arg_info) - PHP_FE(k2hpx_da_free , k2hpx_da_free_arg_info) - PHP_FE(k2hpx_da_get_length , k2hpx_da_get_length_arg_info) - PHP_FE(k2hpx_da_get_offset , k2hpx_da_get_offset_arg_info) - PHP_FE(k2hpx_da_get_read_offset, k2hpx_da_get_read_offset_arg_info) - PHP_FE(k2hpx_da_get_write_offset, k2hpx_da_get_write_offset_arg_info) - PHP_FE(k2hpx_da_set_offset , k2hpx_da_set_offset_arg_info) - PHP_FE(k2hpx_da_set_read_offset, k2hpx_da_set_read_offset_arg_info) - PHP_FE(k2hpx_da_set_write_offset, k2hpx_da_set_write_offset_arg_info) - PHP_FE(k2hpx_da_get_value , k2hpx_da_get_value_arg_info) - PHP_FE(k2hpx_da_get_value_to_file, k2hpx_da_get_value_to_file_arg_info) - PHP_FE(k2hpx_da_set_value , k2hpx_da_set_value_arg_info) - PHP_FE(k2hpx_da_set_value_from_file, k2hpx_da_set_value_from_file_arg_info) - PHP_FE(k2hpx_q_handle , k2hpx_q_handle_arg_info) - PHP_FE(k2hpx_q_free , k2hpx_q_free_arg_info) - PHP_FE(k2hpx_q_empty , k2hpx_q_empty_arg_info) - PHP_FE(k2hpx_q_count , k2hpx_q_count_arg_info) - PHP_FE(k2hpx_q_read , k2hpx_q_read_arg_info) - PHP_FE(k2hpx_q_push , k2hpx_q_push_arg_info) - PHP_FE(k2hpx_q_pop , k2hpx_q_pop_arg_info) - PHP_FE(k2hpx_q_remove , k2hpx_q_remove_arg_info) - PHP_FE(k2hpx_q_dump , k2hpx_q_dump_arg_info) - PHP_FE(k2hpx_keyq_handle , k2hpx_keyq_handle_arg_info) - PHP_FE(k2hpx_keyq_free , k2hpx_keyq_free_arg_info) - PHP_FE(k2hpx_keyq_empty , k2hpx_keyq_empty_arg_info) - PHP_FE(k2hpx_keyq_count , k2hpx_keyq_count_arg_info) - PHP_FE(k2hpx_keyq_read , k2hpx_keyq_read_arg_info) - PHP_FE(k2hpx_keyq_push , k2hpx_keyq_push_arg_info) - PHP_FE(k2hpx_keyq_pop , k2hpx_keyq_pop_arg_info) - PHP_FE(k2hpx_keyq_remove , k2hpx_keyq_remove_arg_info) - PHP_FE(k2hpx_keyq_dump , k2hpx_keyq_dump_arg_info) - PHP_FE(k2hpx_dump_head , k2hpx_dump_head_arg_info) - PHP_FE(k2hpx_dump_keytable , k2hpx_dump_keytable_arg_info) - PHP_FE(k2hpx_dump_full_keytable, k2hpx_dump_full_keytable_arg_info) - PHP_FE(k2hpx_dump_elementtable, k2hpx_dump_elementtable_arg_info) - PHP_FE(k2hpx_dump_full , k2hpx_dump_full_arg_info) - PHP_FE(k2hpx_print_state , k2hpx_print_state_arg_info) - PHP_FE(k2hpx_print_version , k2hpx_print_version_arg_info) - PHP_FE_END /* Must be the last line in k2hash_phpext_functions[] */ -}; -/* }}} */ - -static const zend_function_entry class_K2hash_methods[] = { - ZEND_ME(K2hash, create, arginfo_class_K2hash_create, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(K2hash, open, arginfo_class_K2hash_open, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, openRW, arginfo_class_K2hash_openRW, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, openRO, arginfo_class_K2hash_openRO, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, openTempfile, arginfo_class_K2hash_openTempfile, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, openMem, arginfo_class_K2hash_openMem, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, close, arginfo_class_K2hash_close, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, transaction, arginfo_class_K2hash_transaction, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, enableTransaction, arginfo_class_K2hash_enableTransaction, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, disableTransaction, arginfo_class_K2hash_disableTransaction, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getTransactionThreadPool, arginfo_class_K2hash_getTransactionThreadPool, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(K2hash, setTransactionThreadPool, arginfo_class_K2hash_setTransactionThreadPool, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(K2hash, unsetTransactionThreadPool, arginfo_class_K2hash_unsetTransactionThreadPool, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(K2hash, putArchive, arginfo_class_K2hash_putArchive, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, loadArchive, arginfo_class_K2hash_loadArchive, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, setCommonAttribute, arginfo_class_K2hash_setCommonAttribute, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, cleanCommonAttribute, arginfo_class_K2hash_cleanCommonAttribute, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, addAttrPluginLib, arginfo_class_K2hash_addAttrPluginLib, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, addAttrCryptPass, arginfo_class_K2hash_addAttrCryptPass, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getAttrVersionInfos, arginfo_class_K2hash_getAttrVersionInfos, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getAttrInfos, arginfo_class_K2hash_getAttrInfos, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getValue, arginfo_class_K2hash_getValue, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getSubkeys, arginfo_class_K2hash_getSubkeys, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getAttrs, arginfo_class_K2hash_getAttrs, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getAttrValue, arginfo_class_K2hash_getAttrValue, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, setValue, arginfo_class_K2hash_setValue, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, addSubkey, arginfo_class_K2hash_addSubkey, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, addSubkeys, arginfo_class_K2hash_addSubkeys, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, addAttr, arginfo_class_K2hash_addAttr, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, removeAll, arginfo_class_K2hash_removeAll, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, remove, arginfo_class_K2hash_remove, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, rename, arginfo_class_K2hash_rename, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getIterator, arginfo_class_K2hash_getIterator, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getStream, arginfo_class_K2hash_getStream, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getQueue, arginfo_class_K2hash_getQueue, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, getKeyQueue, arginfo_class_K2hash_getKeyQueue, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, dumpHead, arginfo_class_K2hash_dumpHead, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, dumpKeytable, arginfo_class_K2hash_dumpKeytable, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, dumpFullKeytable, arginfo_class_K2hash_dumpFullKeytable, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, dumpElementtable, arginfo_class_K2hash_dumpElementtable, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, dumpFull, arginfo_class_K2hash_dumpFull, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, printState, arginfo_class_K2hash_printState, ZEND_ACC_PUBLIC) - ZEND_ME(K2hash, printVersion, arginfo_class_K2hash_printVersion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_FE_END -}; - -static const zend_function_entry class_K2hQueue_methods[] = { - ZEND_ME(K2hQueue, __construct, arginfo_class_K2hQueue___construct, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, isEmpty, arginfo_class_K2hQueue_isEmpty, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, count, arginfo_class_K2hQueue_count, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, read, arginfo_class_K2hQueue_read, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, push, arginfo_class_K2hQueue_push, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, pop, arginfo_class_K2hQueue_pop, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, remove, arginfo_class_K2hQueue_remove, ZEND_ACC_PUBLIC) - ZEND_ME(K2hQueue, dump, arginfo_class_K2hQueue_dump, ZEND_ACC_PUBLIC) - ZEND_FE_END -}; - -static const zend_function_entry class_K2hKeyQueue_methods[] = { - ZEND_ME(K2hKeyQueue, __construct, arginfo_class_K2hKeyQueue___construct, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, isEmpty, arginfo_class_K2hKeyQueue_isEmpty, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, count, arginfo_class_K2hKeyQueue_count, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, read, arginfo_class_K2hKeyQueue_read, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, push, arginfo_class_K2hKeyQueue_push, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, pop, arginfo_class_K2hKeyQueue_pop, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, remove, arginfo_class_K2hKeyQueue_remove, ZEND_ACC_PUBLIC) - ZEND_ME(K2hKeyQueue, dump, arginfo_class_K2hKeyQueue_dump, ZEND_ACC_PUBLIC) - ZEND_FE_END -}; - -static const zend_function_entry class_K2hIterator_methods[] = { - ZEND_ME(K2hIterator, __construct, arginfo_class_K2hIterator___construct, ZEND_ACC_PUBLIC) - ZEND_ME(K2hIterator, current, arginfo_class_K2hIterator_current, ZEND_ACC_PUBLIC) - ZEND_ME(K2hIterator, key, arginfo_class_K2hIterator_key, ZEND_ACC_PUBLIC) - ZEND_ME(K2hIterator, next, arginfo_class_K2hIterator_next, ZEND_ACC_PUBLIC) - ZEND_ME(K2hIterator, rewind, arginfo_class_K2hIterator_rewind, ZEND_ACC_PUBLIC) - ZEND_ME(K2hIterator, valid, arginfo_class_K2hIterator_valid, ZEND_ACC_PUBLIC) - ZEND_FE_END -}; - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * End: - * vim600: noet sw=4 ts=4 fdm=marker - * vim<600: noet sw=4 ts=4 - */ diff --git a/k2hash_compat.h b/k2hash_compat.h deleted file mode 100644 index b75fcd4..0000000 --- a/k2hash_compat.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -* K2HASH PHP Extension library -* -* Copyright 2015 Yahoo Japan Corporation. -* -* K2HASH is key-valuew store base libraries. -* K2HASH is made for the purpose of the construction of -* original KVS system and the offer of the library. -* The characteristic is this KVS library which Key can -* layer. And can support multi-processing and multi-thread, -* and is provided safely as available KVS. -* -* For the full copyright and license information, please view -* the LICENSE file that was distributed with this source code. -* -* AUTHOR: Hirotaka Wakabayashi -* CREATE: Tue, Feb 22 2022 -* REVISION: -*/ - -#if PHP_VERSION_ID < 80000 -#include "k2hash_arginfo_php74.h" -#else -#include "k2hash_arginfo.h" -#endif - -/* -* Local variables: -* tab-width: 4 -* c-basic-offset: 4 -* End: -* vim600: noexpandtab sw=4 ts=4 fdm=marker -* vim<600: noexpandtab sw=4 ts=4 -*/ diff --git a/k2hash_func.c b/k2hash_func.c index d793c59..b7a1b2a 100644 --- a/k2hash_func.c +++ b/k2hash_func.c @@ -27,7 +27,7 @@ // cppcheck-suppress missingInclude #include "ext/standard/info.h" #include "php_k2hash.h" -#include "k2hash_compat.h" +#include "k2hash_arginfo.h" /* For compatibility with older PHP versions */ #ifndef ZEND_PARSE_PARAMETERS_NONE