Marco Behnke | 1 Feb 15:24
Gravatar

Re: Autoloading

Am 26.01.2012 15:44, schrieb Floyd Resler:
 > As stated, when I change __autoload to spl_autoload_register I get 
the can't be redeclared error.  Any ideas?

Try

$callback = function($class_name) {
	$path = dirname(__FILE__)."/../../lib/class.{$class_name}.php";
	if (file_exists($path)) {
		require_once $path;
	}
};

spl_autoload_register($callback);

--

-- 
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: marco <at> behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

(Continue reading)

Darryle Steplight | 1 Feb 18:56
Picon

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' ....

Hello Everyone,
   My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and
some numerous modules via yum. Some of those modules are  PDO,
PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not
recognizing my PDO_MYSQL module.  I can verify that these modules
exists by looking in my /etc/php.d/ folder.  I'm also including the
PDO and PDO_MYSQL extensions in my httpd.conf file after my
extension_dir=/path/to/modules/ declaration.  When I run php -i | grep
pdo this is what I see

]# php -i | grep pdo
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/php_pdo' - /usr/lib64/php/modules/php_pdo:
cannot open shared object file: No such file or directory in Unknown
on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/php_pdo_mysql' -
/usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file:
No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.15: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.15: cannot
open shared object file: No such file or directory in Unknown on line
0
Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu'
(Continue reading)

Tim Streater | 2 Feb 00:17
Picon

Looking for the string functions

I'm keen to look at the C source of such as substr_replace() and stripos(). I've downloaded the 5.3.9 PHP
source, but am having difficulty locating the string functions. Could someone point me at the right
directory or .c file?

Thanks,

--
Cheers  --  Tim

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mike Mackintosh | 2 Feb 00:23

Re: Looking for the string functions

If you don't get any replies, try the Dev Mailing list.

--

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

Mike Mackintosh | 2 Feb 00:26

Re: Looking for the string functions

btw, php dev = internals

--

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

Matijn Woudt | 2 Feb 00:44
Picon

Re: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' ....

On Wed, Feb 1, 2012 at 6:56 PM, Darryle Steplight <dsteplight <at> gmail.com> wrote:
> Hello Everyone,
>    My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and
> some numerous modules via yum. Some of those modules are  PDO,
> PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not
> recognizing my PDO_MYSQL module.  I can verify that these modules
> exists by looking in my /etc/php.d/ folder.  I'm also including the
> PDO and PDO_MYSQL extensions in my httpd.conf file after my
> extension_dir=/path/to/modules/ declaration.  When I run php -i | grep
> pdo this is what I see
>
>
> ]# php -i | grep pdo
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib64/php/modules/php_pdo' - /usr/lib64/php/modules/php_pdo:
> cannot open shared object file: No such file or directory in Unknown
> on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib64/php/modules/php_pdo_mysql' -
> /usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file:
> No such file or directory in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open

Hi,

This seems to be an common error with CentOS 64 bit. If you google for
it there are plenty of people experiencing the same issue, and there
are probably a few fixes for it.
One of the first hits I got was a user who did:
(Continue reading)

Matijn Woudt | 2 Feb 00:49
Picon

Re: Looking for the string functions

On Thu, Feb 2, 2012 at 12:17 AM, Tim Streater <tim <at> clothears.org.uk> wrote:
> I'm keen to look at the C source of such as substr_replace() and stripos(). I've downloaded the 5.3.9 PHP
source, but am having difficulty locating the string functions. Could someone point me at the right
directory or .c file?
>
> Thanks,
>
> --
> Cheers  --  Tim

On linux you can use a combination of find and grep to find it, on
windows there's a search function? I believe you can specify in the
search that you want to search inside files to get it, and else you
can use software like Notepad++ for example that has a 'search in
files' option.

- Matijn

--

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

Mike Mackintosh | 2 Feb 01:15

Re: Looking for the string functions


On Feb 1, 2012, at 18:49, Matijn Woudt <tijnema <at> gmail.com> wrote:

> On Thu, Feb 2, 2012 at 12:17 AM, Tim Streater <tim <at> clothears.org.uk> wrote:
>> I'm keen to look at the C source of such as substr_replace() and stripos(). I've downloaded the 5.3.9 PHP
source, but am having difficulty locating the string functions. Could someone point me at the right
directory or .c file?
>> 
>> Thanks,
>> 
>> --
>> Cheers  --  Tim
> 
> On linux you can use a combination of find and grep to find it, on
> windows there's a search function? I believe you can specify in the
> search that you want to search inside files to get it, and else you
> can use software like Notepad++ for example that has a 'search in
> files' option.
> 
> - Matijn
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

See http://www.highonphp.com/how-to-find-file-by-content
--

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

Darryle Steplight | 2 Feb 01:20
Picon

Re: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_pdo_mysql' ....

I have version usr/lib64/mysql/libmysqlclient.so.18 instead of
usr/lib64mysql//libmysqlclient.so.15 . I coped over the file into
usr/lib64/libmysqlclient.so.18, because that file didn't exist in that
path, I created the sym link but no luck. Few fixes are better than no
fixes for sure.

On Wed, Feb 1, 2012 at 6:44 PM, Matijn Woudt <tijnema <at> gmail.com> wrote:
> On Wed, Feb 1, 2012 at 6:56 PM, Darryle Steplight <dsteplight <at> gmail.com> wrote:
>> Hello Everyone,
>>    My name is Darryle. I've installed PHP 5.3.9 on my CentOs box and
>> some numerous modules via yum. Some of those modules are  PDO,
>> PDO_MYSQL and PDO_SQLITE. However, my PHP configuration is not
>> recognizing my PDO_MYSQL module.  I can verify that these modules
>> exists by looking in my /etc/php.d/ folder.  I'm also including the
>> PDO and PDO_MYSQL extensions in my httpd.conf file after my
>> extension_dir=/path/to/modules/ declaration.  When I run php -i | grep
>> pdo this is what I see
>>
>>
>> ]# php -i | grep pdo
>> PHP Warning:  PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/php_pdo' - /usr/lib64/php/modules/php_pdo:
>> cannot open shared object file: No such file or directory in Unknown
>> on line 0
>> PHP Warning:  PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/php_pdo_mysql' -
>> /usr/lib64/php/modules/php_pdo_mysql: cannot open shared object file:
>> No such file or directory in Unknown on line 0
>> PHP Warning:  PHP Startup: Unable to load dynamic library
>> '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open
(Continue reading)

Gwénaël RIOTTEAU | 2 Feb 09:56
Picon
Favicon

Random translation with gettext

Hi,

   my website have french and english users (most are french)
I use gettext for the translation.
But sometimes (it's random), french users have english word and english 
users have french word.
Why ? My Apache is compiled with prefork, so i don't understand ...

My config :
   PHP 5.3.9
   Apache 2.2.22
   CentOS release 5.7
   gettext 0.17
   (previously with Apache 2.2.17 and PHP 5.3.3, no difference)

./httpd -l :
Compiled in modules:
   core.c
   prefork.c
   http_core.c
   mod_so.c

--

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


Gmane