首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PHP7兼容性测试

PHP7兼容性测试
EN

Stack Overflow用户
提问于 2020-08-28 01:36:34
回答 1查看 72关注 0票数 0

在使用php7mar检查我们的代码后,报告中有一些条目与以下内容类似:

代码语言:javascript
复制
  #### /includes/classes/class.shopdb.php
* funcGetArg
 * Line 206: `                  $args = func_get_args();`

当我检查指定的文件和代码时,我得到的是:

代码语言:javascript
复制
    if(func_num_args() > 1) {
        $args = func_get_args();
        foreach($args as &$item)
            $item = ShopDB::quote($item);
        $query = vsprintf(str_replace('?', '%s', $query), array_slice($args, 1));
    }

我真的看不出有什么问题。还有其他人吗?

EN

回答 1

Stack Overflow用户

发布于 2020-08-30 20:48:45

经过一些搜索,func_get_args应该可以在php7中正常工作。在php7mar报告中还有一些我不理解的内容:

  • variableInterpolation

  • 线路370:return $this->smarty->registered_plugins[$plugin_type][$tag][0][0]->$function[1]($new_args, $this);

  • 第441行:return $this->default_handler_plugins[$plugin_type][$tag][0][0]->$function[1]($new_args, $this);

  • 线路481:return $this->smarty->registered_plugins[Smarty::PLUGIN_COMPILER][$tag][0][0]->$function[1]($args, $this);

  • 第63行:$this->$row[0] = $row[1];

  • newOperatorWithReference

  • 第53行:* Remember to use ampersand when creating an OLE object ($my_ole =& new OLE();)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63621427

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档