You are here: Re: [PHP] mysqli unclonable object « PHP « IT news, forums, messages
Re: [PHP] mysqli unclonable object

Posted by Curt Zirzow on 11/23/05 19:12

On Wed, Nov 23, 2005 at 01:13:22AM -0500, Matt Monaco wrote:
> On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an
> instance of a mysqli extension.
>
> class Data extends mysqli {
> ....
>
> $link = new Data("localhost", "user", "password", "db");
>
> This invokes the error "Trying to clone unclonable object of type Data."
> However if I create the link with a reference ...
> $link =& new Data(....);
> ...everything works fine.

This is because you have the ini option:

zend.ze1_compatibility_mode = On


Curt.
--
cat .signature: No such file or directory

 

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

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