php-general Digest 16 Oct 2010 15:12:44 -0000 Issue 6990

Topics (messages 308742 through 308746):

Re: Error message not understood
        308742 by: Tommy Pham
        308743 by: Tommy Pham
        308744 by: Luigi Pressello

Fatal error: Allowed memory size of XXXXX bytes exhausted
        308745 by: Julien Jabouin

odd while behavior...
        308746 by: Jason Pruim

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> -----Original Message-----
> From: sueandant [mailto:[email protected]]
> Sent: Friday, October 15, 2010 2:02 PM
> To: PHP
> Subject: [PHP] Error message not understood
> 
> Can anyone help me with this error message and explain how to correct the
> mismatch?
> 
> PHP Warning:  mysqli_connect() [<a href='function.mysqli-
> connect'>function.mysqli-connect</a>]: Headers and client library minor
> version mismatch. Headers:50051 Library:50151
> 
> tholland

It would help if you provide the platform and platform version: 
Windows, Linux, Mac, FreeBSD, or other variants.

And also the PHP version you're using.  Did you compile PHP yourself or use
a distribution?

Regards,
Tommy


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Tommy Pham [mailto:[email protected]]
> Sent: Friday, October 15, 2010 2:16 PM
> To: 'sueandant'; 'PHP'
> Subject: RE: [PHP] Error message not understood
> 
> > -----Original Message-----
> > From: sueandant [mailto:[email protected]]
> > Sent: Friday, October 15, 2010 2:02 PM
> > To: PHP
> > Subject: [PHP] Error message not understood
> >
> > Can anyone help me with this error message and explain how to correct
> > the mismatch?
> >
> > PHP Warning:  mysqli_connect() [<a href='function.mysqli-
> > connect'>function.mysqli-connect</a>]: Headers and client library
> > minor version mismatch. Headers:50051 Library:50151
> >
> > tholland
> 
> It would help if you provide the platform and platform version:
> Windows, Linux, Mac, FreeBSD, or other variants.
> 
> And also the PHP version you're using.  Did you compile PHP yourself or
use
> a distribution?
> 
> Regards,
> Tommy

Forgot to mention this earlier... too hasty on the send button ... lol.

Since it's only a warning and you are able to connect, run [1] & [2] to see
what do you get.

[1] http://us2.php.net/manual/en/mysqli.get-client-info.php
[2] http://us2.php.net/manual/en/mysqli.info.php



--- End Message ---
--- Begin Message ---
Probably a PHP compilation problem.
The message seems refer to the headers (libmysql.h) used in the ../configure 
phase of the building process.

It seems like your PHP version was compiled using a MySQL 5.0.11 version 
header, while your connecting to a server running MySQL 5.1.51, Have you 
upgraded your MySQL recently? are you using the MySQL server on the same 
machine that runs Apache/IIS/etc.. and PHP?

Sorry for the "Italianese" english :)

Luigi.

Il giorno 15/ott/2010, alle ore 23.19, Tommy Pham ha scritto:

>> -----Original Message-----
>> From: Tommy Pham [mailto:[email protected]]
>> Sent: Friday, October 15, 2010 2:16 PM
>> To: 'sueandant'; 'PHP'
>> Subject: RE: [PHP] Error message not understood
>> 
>>> -----Original Message-----
>>> From: sueandant [mailto:[email protected]]
>>> Sent: Friday, October 15, 2010 2:02 PM
>>> To: PHP
>>> Subject: [PHP] Error message not understood
>>> 
>>> Can anyone help me with this error message and explain how to correct
>>> the mismatch?
>>> 
>>> PHP Warning:  mysqli_connect() [<a href='function.mysqli-
>>> connect'>function.mysqli-connect</a>]: Headers and client library
>>> minor version mismatch. Headers:50051 Library:50151
>>> 
>>> tholland
>> 
>> It would help if you provide the platform and platform version:
>> Windows, Linux, Mac, FreeBSD, or other variants.
>> 
>> And also the PHP version you're using.  Did you compile PHP yourself or
> use
>> a distribution?
>> 
>> Regards,
>> Tommy
> 
> Forgot to mention this earlier... too hasty on the send button ... lol.
> 
> Since it's only a warning and you are able to connect, run [1] & [2] to see
> what do you get.
> 
> [1] http://us2.php.net/manual/en/mysqli.get-client-info.php
> [2] http://us2.php.net/manual/en/mysqli.info.php
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
Hello,

I have an issu with a script launched by cron.

In fact, although i setup php memory_limit to high value (1G or 2Go),
i have the same issue.

By example  with 2G :

Output from command /usr/bin/php5 -d memory_limit=2G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 266257 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


And with 1G :

Output from command /usr/bin/php5 -d memory_limit=1G -f
/home/test/www/cron.php ..

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried
to allocate 267717 bytes) in
/home/test/www/app/code/local/Ess/M2e/Model/M2eConnector.php on line
423


Result is the same...
Do you know why ?


This is my php version :
/usr/bin/php5 -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22
2009 01:50:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by
ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies


On a Debian Lenny, 64 bits version.

--- End Message ---
--- Begin Message --- Okay so I'm just playing around with some stuff trying to learn more and expand my knowledge and I ran into something I don't understand... Take the following code:

<?PHP

echo "<select>";
$i ="0";
    while($i <="12") {

    $dateformat = date("M", mktime(0,0,0, $i,0,0));
    $month = mktime(0,0,0, $i,0,0);
    //echo date("M", mktime(0,0,0, $i,0,0));
    //echo "<br>inside while<br>";
    echo <<<HTML
    <option value="{$i}">{$dateformat} {$i}</option>
HTML;
    $i++;
    }
echo "</select>";

?>

which does display a select drop down box with the month's in it... But on my test server it starts the display at december... With setting $i = "1" i would have thought it should start at january?

Any ideas on what I missed? :)


Thanks for looking! :)


--- End Message ---

Reply via email to