Cloud Nine

Avatar

About IT things and others.

08/
Deprecated: Assigning the return value of new by reference is deprecated in
8月 12, 2009 3

Cakephpの導入

Windowsの開発環境
Apache2.2
PHP5.3
の環境化で、Cakephpを試していたら下記のエラーがでました。

Deprecated: Assigning the return value of new by reference is deprecated in

下記のURLで調査したところ、PHP5.3の環境だとでるようです。

http://cakephp.jp/modules/newbb/viewtopic.php?topic_id=1993&forum=3

下記のファイルにif文を追加しました。
「cake/libs/configure.php」

if (isset($config['debug'])) {
 if ($_this->debug) {
  error_reporting(E_ALL);
  この三行追加
  if (error_reporting() > 6143) {
   error_reporting(E_ALL & ~E_DEPRECATED);
  }
  ここまで
  if (function_exists('ini_set')) {
   ini_set('display_errors', 1);
  }
Tags: ,

Related posts

気に入った方はbookmarkしてください。


最近読んだお勧めの書籍 2009/08/17更新

3 Comments, Comment or Ping

  1. 、「、熙ャ、ネ、ヲ、エ、カ、、、゙、ケ。。トノイテ、キ、ソ、鬣ィ・鬘シ、ャ、ハ、ッ、ハ、熙゙、キ、ソ
    、ウ、?ォ、鯀ィ、テ、ニ、゚、゙、ケ

  2. k

    初めまして。お時間あれば回答いただけば幸いです。

    PHP 5.3, CakePHP 1.2.7, mySQL 5.1.42, Apache 2.2.14で構築中の者です。
    著者様が書かれいる内容を参考にしているのですが、該当項目箇所が見当たりません。
    できれば上記は、どのような環境で構築された時のものなのか「詳細」をお教え頂けませんでしょうか。
    よろしくお願いいたします。

  3. この現象が出たPCを一度フォーマットしてしまったので、詳しくは覚えていませんが。
    環境で覚えている範囲ですが、
    CakePHPは、1.2.5
    OSは、WindowsのXPSP3
    apache、phpは、各種インストラーを使用してインストールしました。

Reply to “Deprecated: Assigning the return value of new by reference is deprecated in”

Real Time Analytics