daoで
rhaco_ja
September 03, 2010
159 messages
Fatal error: Call to a member function は display_errors onじゃないとでないのか
<pre>Fatal error: Call to a member function は display_errors onじゃないとでないのか</pre>
// ini On / Off, display_errors On / Off
Fatal error: Call to undefined function
// ini On / Off, display_errors On
Fatal error: Call to a member function
// ini On , display_errors On / Off
Parse error: syntax error
Fatal error: Multiple access type modifiers are not allowed // <- public public function hoge()
<pre>// ini On / Off, display_errors On / Off Fatal error: Call to undefined function // ini On / Off, display_errors On Fatal error: Call to a member function // ini On , display_errors On / Off Parse error: syntax error Fatal error: Multiple access type modifiers are not allowed // <- public public function hoge() </pre>
class Abc{
public function hoge(){
$obj->aaa();
print("hoge");
}
}
class Def{
public function aaa(){
try{
$a = new Abc();
call_user_func_array(array($a,"hoge"),array());
}catch(Exception $e){
Log::d($e);
}
}
}
$o = new Def();
$o->aaa();
<pre>class Abc{ public function hoge(){ $obj->aaa(); print("hoge"); } } class Def{ public function aaa(){ try{ $a = new Abc(); call_user_func_array(array($a,"hoge"),array()); }catch(Exception $e){ Log::d($e); } } } $o = new Def(); $o->aaa();</pre>
<?php
class Abc{ public function hoge(){ $obj->aaa(); } }
$a = new Abc();
call_user_func_array(array($a,"hoge"),array());
<pre><?php class Abc{ public function hoge(){ $obj->aaa(); } } $a = new Abc(); call_user_func_array(array($a,"hoge"),array()); </pre>
class Abc{ public function hoge(){ $obj->aaa(); } }
$a = new Abc();
$a->hoge();
<pre>class Abc{ public function hoge(){ $obj->aaa(); } } $a = new Abc(); $a->hoge();</pre>




