万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

CakePHPで設定
Deprecated: Assigning the return value of new by reference is deprecated in /Applications/XAMPP/xamppfiles/htdocs/cakephp/cake/libs/inflector.php on line 131

Deprecated: Assigning the return value of new by reference is deprecated in /Applications/XAMPP/xamppfiles/htdocs/cakephp/cake/libs/configure.php on line 136

Deprecated: Assigning the return value of new by reference is deprecated in /Applications/XAMPP/xamppfiles/htdocs/cakephp/cake/libs/configure.php on line 226

Deprecated: Assigning the return value of new by reference is deprecated in /Applications/XAMPP/xamppfiles/htdocs/cakephp/cake/libs/configure.php on line 910

Deprecated: Assigning the return value of new by reference is deprecated in /Applications/XAMPP/xamppfiles/htdocs/cakephp/cake/libs/configure.php on line 950

Warning (512): /Applications/XAMPP/xamppfiles/htdocs/cakephp/app/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 262]


これ直らない

$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/cache/models/
$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/cache/persistent/
$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/cache/views/
$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/sessions/
$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/logs/
$ chmod -R 707 /Applications/XAMPP/htdocs/cakephp/app/tmp/tests/

「cake/libs/configure.php」へif文追加

                        if ($_this->debug) {
                                error_reporting(E_ALL & ~E_DEPRECATED);
                                // added
                                <span style="color:#FF0000;">if (error_reporting() > 6143) {</span>
                                        error_reporting(E_ALL & ~E_DEPRECATED);
                                <span style="color:#FF0000;">}</span>

                                if (function_exists('ini_set')) {
                                        ini_set('display_errors', 1);
                                }

                                if (!class_exists('Debugger')) {
                                        require LIBS . 'debugger.php';
                                }