小编use*_*829的帖子

PHP 5.4调用时间传递引用 - 这里很容易解决?

我有这个错误消息与Centos 5.9,PHP 5.4和较旧的PHP程序扩展(typo3 CMS).

PHP致命错误:已在第279行的class.tx_spscoutnetcalendar_pi1.php中删除了调用时传递引用

这是模拟php代码的功能:

    // ********* Start XML code *********
    // get XML data from an URL and return it
    function fetchCalendarData($xmlUrl,$timeout) {

            $xmlSource="";
            $url = parse_url($xmlUrl);

            $fp = fsockopen($url['host'], "80", &$errno, &$errstr, $timeout);
            if ($fp) {
                    fputs($fp, "GET ".$url['path']."?".$url['query']." HTTP/1.1\r\nHost: " . $url['host'] . "\r\n\r\n");
                    while(!feof($fp))
                    $xmlSource .= fgets($fp, 128);
            }
                    // strip HTTP header
        if ($pos = strpos($xmlSource,"<?xml")) { // this has to be the first line
            $xmlSource = substr($xmlSource, $pos);
        } else {
            $xmlSource="";
        } …
Run Code Online (Sandbox Code Playgroud)

php

1
推荐指数
1
解决办法
2329
查看次数

标签 统计

php ×1