douping3860 2013-01-28 12:59
浏览 10
已采纳

#warning#当我将php文件从一个站点复制到同一个Zend中的另一个站点时,调用未定义的函数'print_r'

enter image description here

  • I can't really understand what happened here. What I've done was to copy a php file to another project in the same Zend. It's a warning, not an error.

  • My computer is supposed to have only one php version, so it seems nothing to do with the php version.

  • the function is standard "print_r", so it seems nothing to do with the undefined function.

the code is very normal, like : print_r ( "image:" );

  • 写回答

1条回答 默认 最新

  • doupang5433 2013-01-29 02:49
    关注

    try this kb.zend.com/index.php?View=entry&EntryID=415 – @Rakesh Sharma

    To workaround this problem the user needs to manually add relevant content into the '.buildpath' file.

    • Close the project (Project | Close Project).
    • Open the '.buildpath' file that resides in the project's root directory with a text editor. If the file does not exist, create it. Paste the correct contents into the '.buildpath' file:

    .buildpath contents for a PHP Project

    <?xml version="1.0" encoding="UTF-8"?>
    <buildpath>
        <buildpathentry kind="src" path=""/>
        <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
    </buildpath>
    

    .buildpath contents for a Zend Framework Project

    <?xml version="1.0" encoding="UTF-8"?>
    <buildpath>
        <buildpathentry kind="src" path=""/>
        <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
        <buildpathentry kind="con" path="org.zend.php.framework.CONTAINER"/>
    </buildpath>
    
    • Save the file.
    • Open your project (Project | Open Project).
    • Rebuild the project (Project | Clean).

    After the build process finishes, you should see no warnings for standard PHP functions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?