Tíquete #9589

Only variables...
: 2006-12-20 21:52 Última Atualização: 2007-10-17 15:40

Relator:
Dono:
Tipo:
Estado:
Aberto [Owner assigned]
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum

Details

PHP5 系ならおぶじぇくとは参照渡しが基本に変更されてるか
ら問題ないみたいだけど

>Notice [PHP]: Only variables should be assigned by
reference in file

がいっぱい出ちゃいます
とりあえず気付いたところを・・・


/class/Assetmanager.class.php

L26
function getSingleton()
→function &getSingleton()

L40
function create($type, $name)
→function &create($type, $name)

L59
function _fallbackCreate($type, $name)
→function &_fallbackCreate($type, $name)

L91
function load($type, $name)
→function &load($type, $name)

L104
function _createHandler($name)
→function &_createHandler($name)

L112
function &_createFilter($name)
→function &_createFilter($name)

L140
function _createActionForm($name)
→function &_createActionForm($name)

L169
function _createInstance($className, $filePath)
→function &_createInstance($className, $filePath)



Action 全般

function _getHandler()
→function &_getHandler()


ListAction 全般

function _getFilterForm()
→function &_getFilterForm()


こんなかんじで

Ticket History (3/5 Histories)

2006-12-22 00:30 Updated by: minahito
Comentário
Logged In: YES
user_id=8353

ありがとうございます。

昔は PHP5 で動かないというケースが多かったので PHP5 にスイッ
チしたままでやってるのですが、たまには PHP4 に戻してやらない
とまずいですね...^^;

さっそくなおします。
2006-12-22 00:30 Updated by: minahito
  • Dono Update from (Nenhum) to minahito
2007-03-08 16:25 Updated by: minahito
Comentário
Logged In: YES
user_id=8353

びっくりしたんですが、
内部で「参照を返す」フラグを立てておくと自動的にそういう PHP
コードを吐いてくれるはずのクラスが、その処理を怠っていたこと
が発覚 orz

とりあえずリビルドします。。
2007-05-25 11:53 Updated by: minahito
  • Resolução Update from Nenhum to Fixed
Comentário
Logged In: YES
user_id=8353

Fixed.
たぶん

→要・確認
2007-10-17 15:40 Updated by: tom_g3x
Comentário
Logged In: YES
user_id=6745

「転載済」
http://sourceforge.net/tracker/index.php?func=detail&aid=1814886&group_id=184930&atid=996868

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login