You are here: Re: Wierd error « PHP « IT news, forums, messages
Re: Wierd error

Posted by James Benson on 11/17/05 16:50

There is nothing weird when this function takes a variable as the
argument and your using an object, read the manual


http://php.net/settype



You could try:-

$dbObject = (null) $dbObject;


Ive not tested that but think it should work!



James




Chris Boget wrote:
> I'm seeing the following line showing up in my logs:
>
> 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () -
> function does not exist
>
> and I've narrowed it down to this line of code:
>
> settype( &$dbObject, "null" );
>
> When I comment out the above line, the error goes away. When
> I uncomment it out, the error comes back. I've used both single
> and double quotes, I've tried using different types, I've tried passing
> the object both by value and by reference but nothing seems to help.
>
> What's going on?
>
> thnx,
> Chris

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация