Re: mysqli unclonable object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your attention Curt, but unfortunatly that is not the issue.
Compatibility mode is not on.

For documentation's sake, I think the problem is that there are other links
in the code using the same credentials.  When you declare a link resource to
a database, PHP first searches to see if there is already one open,
therefore despite the fact that this link wasn't even using the same library
(mysql vs mysqli) it didn't matter; only one connection to the database
could be made (as root in this case).

If this is incorrect or anyone has additional insight, please reply.

Thanks,
Matt


"Curt Zirzow" <czirzow@xxxxxxxxx> wrote in message 
news:20051123171225.GG11507@xxxxxxxxxxxxxxx
> 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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux