douchenzhan3050 2018-08-28 10:59
浏览 55

Symfony / Doctrine ApcCache到ApcuCache

im updating a project from SF2.6 -> 2.8.x -> 3.4.x one of the first necessary steps, in my opinion, was to update from PHP5.6 to PHP7.1.x

everything worked "fine" so far but now im stuck with doctrine using ApcCache instead of ApcuCache - both classes are available in the vendor/doctrine folders but i have no clue were i can tell doctrine to use the ApcuCache-Class instead of the ApcCache-Class - there is even a notice in the src files that ApcCache is deprecated since 1.6 and devs should use the ApcuCache

im running a docker container were i replaced the old apc (1.2.x) version with apcu (1.5.x) and added a backward compatibility lib for php7+

###########################################################################
# APC:
###########################################################################

ARG INSTALL_APC=true

RUN if [ ${INSTALL_APC} = true ]; then \
    yes|pecl install apcu && pecl install apcu_bc && docker-php-ext-enable apcu \
;fi

###########################################################################
# Check PHP version:
###########################################################################

what i've tried... i just replaced all "apc_"-Calls in ApcCache.php with actual "apcu_"-Calls - after that change everything worked fine again - but this is were the root of my question comes from - i just have to tell doctrine to use the other internal class - somehow...

any help is much appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)
    • ¥15 keil里为什么main.c定义的函数在it.c调用不了
    • ¥50 切换TabTip键盘的输入法
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?