0

Windows Vista および WAMP2.0 で phpFlickr (最新の安定バージョン) を使用します。

そして私はこれらを持っています:

Strict Standards: Assigning the return value of new by reference is deprecated in .../phpFlickr.php on line 91

Strict Standards: Assigning the return value of new by reference is deprecated in .....phpFlickr.php on line 330

Strict Standards: Assigning the return value of new by reference is deprecated in ...phpFlickr.php on line 399

Strict Standards: Assigning the return value of new by reference is deprecated in phpFlickr.php on line 468

Strict Standards: Assigning the return value of new by reference is deprecated in HTTP/Request.php on line 341

Strict Standards: Assigning the return value of new by reference is deprecated in ../Request.php on line 659

Strict Standards: Assigning the return value of new by reference is deprecated in ....quest.php on line 672

Strict Standards: Assigning the return value of new by reference is deprecated in ...../Request.php on line 717

Strict Standards: Assigning the return value of new by reference is deprecated in ....PEAR.php on line 569

Strict Standards: Assigning the return value of new by reference is deprecated in .....PEAR.php on line 572

私は symfony を使用しているので、この警告メッセージを GUI に表示したくなく、定義したページにリクエストをリダイレクトしたいと考えています。警告メッセージはメソッド sync_upload の後に表示されます。

これは私のコードです:

require_once("../Flickr/phpFlickr.php");
//authentication
        $f = new phpFlickr("key","secret");
        if($f!=null) echo  "connexion réussie</br>";
        $f->setToken("token");

        $f->enableCache("fs", "../Flickr/cache");

        $myPerms =$f->auth("write");
        echo  "permission définie".$myPerms."</br>";
//upload
        $tags="test1,test2";
        $upload_photo_id=$f->sync_upload($filePhotoName,"www.koutchoumi.com",null,$tags);
        echo $upload_photo_id."_test";
        $photo=$f->photos_getInfo($upload_photo_id);
        print_r($photo) ;
        $url=$f->buildPhotoURL($photo);
        echo "</br>".$url."</br>"  ;
4

1 に答える 1

1

PHP 5.3 を使用しているようです

error_reportingタイプのエラーがE_DEPRECATED表示されないように設定を変更するだけです。

于 2009-12-01T14:58:18.973 に答える