RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message | ||||
|---|---|---|---|---|---|
|
xiffy Nucleus Guru ![]() Joined: 27 Mar 2002 Posts: 1218 Location: Deventer |
I'm using PHP5 on my box and don't have a need for a PHP4 test environment. But this lazyness has off course backfired when developing plugins. In the plugin I instantiate a class like this:
The problem is of course $value = $this->plugin->getOption('someoption'); in the somefunction inside SQLLIB. It does not work on some (older?) PHP installs. No error, but no value either Does anyone know how I can get a plugin option from some distant CLASS that works on all php versions? cheers _________________ __deus ex machina__ http://xiffy.nl/weblog/ Japan photo's: http://2006.cooljapan.nl/main.php?g2_itemId=20 |
||||
|
|
|||||
|
pepiino Nucleus Disciple Joined: 26 Feb 2005 Posts: 100 Location: Czech Republic |
It's a problem of PHP4 and object copying. I'v just sent you a bugreport about NP_SpamBayes and php4 (see http://forum.nucleuscms.org/viewtopic.php?p=67138#67138). It's the same problem you are mentioning here and I included my explanation and solution in the post. In your example it should be:
Welcome to the PHP4 reference hell _________________ Josef 'pepiino' Adamcik <jabber:josef.adamcik@jabber.cz>,<GTalk: josef.adamcik@gmail.com> http://blog.pepiino.info NP_MiniForum - guestbook or shoutbox for your site! |
||||
|
|
|||||
|
xiffy Nucleus Guru ![]() Joined: 27 Mar 2002 Posts: 1218 Location: Deventer |
Okay, that's what I needed. And yes you guessed right on the other topic _________________ __deus ex machina__ http://xiffy.nl/weblog/ Japan photo's: http://2006.cooljapan.nl/main.php?g2_itemId=20 |
||||
|
|
|||||
|
|
|||||
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|||||