Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
php bugz..

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 04.08.2004 19:17    Post subject: php bugz.. Add user to your forum ignore list Reply with quote

Iam jedan mali problemic sa phpom
Code:


Warning: Problem with method call - please report this bug in i:\appserv\www\pat\Kernel\adminKernel.php on line 182

Warning: Problem with method call - please report this bug in i:\appserv\www\pat\Kernel\adminKernel.php on line 183



no mozda se to moze izbjeci, kod s kojim radim je ovakav
bas mi zeza kad si loadam neke l stvari iz language arraya koji zgleda ovako
Code:

$language = array();

$language['nesto0'] = array(
'uh_oh' => 'uh oh bejbe',
'vi' => 'oni'
);

i kada mi zatreba nes iz language var-a vadim pomocu ovoga Very Happy
Code:

function lang($name, $lay) {
      global $core;
         
      $dio    =   $core->lang;
      
      $return = $dio[''.$lay.''][''.$name.''];
      return $return;
      
   }
/* dakle,  $this->lang('uh_oh', 'nesto0'); :D
*/


'el mi ima pomoci il moram nes drugo smislljat Very Happy

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 05.08.2004 06:02    Post subject: Add user to your forum ignore list Reply with quote

Ovaj warning php daje kad ima problema sa pozivanjem staticnih metoda (barem po bug databaseu).

Sto je tocno u tim linijama?

Ovo kaj ti radis bi u nacelu trebalo (valjda, ne vidim ostatak koda) raditi.
U svakom slucaju trebalo bi komotno funkcionirati i ovo: return $core->lang[$lay][$name]; umjesto ove nepotrebne 2 medjuvarijable...

Dupli single quoteovi su ti u ovom slucaju potpuno suvisni, samo bespotrebno mucis parser...

Da li je lang() static metoda neke klase (pitam zbog $this u komentaru)? I sto je $core? Objekt iste klase? Da ne pozivas sam sebe u nekoj kopiji pa se to malo zblesira sve?

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 05.08.2004 20:25    Post subject: Add user to your forum ignore list Reply with quote

core clasa mi sadrzi smarty, mysql klasu i lang file loadane unutra po varovima.

u biti lang pozivam sa adminKernel::lang(); i onda radi, a ako predjem na $this error mi zbaci.
tu funkciju koristim samo radi pozivanja trazenih prijevoda pa onda dalje saljem sve smarty-u .

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 05.08.2004 21:45    Post subject: Add user to your forum ignore list Reply with quote

Da li je ova lang funkcija koju gore definiras dio core klase, tj. da li je adminKernel objekt deriviran iz core klase ili iz neke adminKernel klase?

Koja je verzija php-a? Najlakse bi bilo da se vidi kod, ovak tapkam u mraku. Protrci debuggerom kroz to, pa vidi:

http://dd.cron.ru/dbg/
http://pecl.php.net/package/apd
http://xdebug.org/
http://gubed.sf.net/

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 08.08.2004 01:14    Post subject: Add user to your forum ignore list Reply with quote

PHP je 4.3.6
(jedno off pitanje: apache mi gure php kroz isapi modul, i kada zamijenim sve fileove u php diru sa novijim inacicama phpinfo() mi idalje prikazuje proslu inacicu php-a..).
adminKernel je zaseban objekt.
Vjerojetno bi trebalo sa adminKernel om extendati core klasu .

_________________
FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!
Flikrac
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group