php-general Digest 15 Apr 2012 10:46:04 -0000 Issue 7775

2012-04-15 Thread php-general-digest-help
php-general Digest 15 Apr 2012 10:46:04 - Issue 7775 Topics (messages 317546 through 317552): Re: case-insensitive $_REQUEST,$_GET,$_POST keys? 317546 by: David OBrien 317550 by: tamouse mailing lists Upcoming Outage: php.net 317547 by: Daniel Brown 317548

php-general Digest 16 Apr 2012 02:00:11 -0000 Issue 7776

2012-04-15 Thread php-general-digest-help
php-general Digest 16 Apr 2012 02:00:11 - Issue 7776 Topics (messages 317553 through 317562): Re: strict nannying ... 317553 by: Stuart Dallas 317554 by: Lester Caine 317555 by: Stuart Dallas 317556 by: Lester Caine 317557 by: Stuart Dallas

[PHP] strict nannying ...

2012-04-15 Thread Lester Caine
OK I've got a machine set up with PHP5.4 and left the strict errors showing, and I'm falling at the first hurdle :) The functions for generating URL's are used both statically and as part of the class. STRICT complains because they are not marked 'static' ( and I'm assuming 'public static'

Re: [PHP] strict nannying ...

2012-04-15 Thread Stuart Dallas
On 15 Apr 2012, at 11:44, Lester Caine wrote: I've got a machine set up with PHP5.4 and left the strict errors showing, and I'm falling at the first hurdle :) The functions for generating URL's are used both statically and as part of the class. STRICT complains because they are not marked

Re: [PHP] strict nannying ...

2012-04-15 Thread Lester Caine
Stuart Dallas wrote: On 15 Apr 2012, at 11:44, Lester Caine wrote: I've got a machine set up with PHP5.4 and left the strict errors showing, and I'm falling at the first hurdle :) The functions for generating URL's are used both statically and as part of the class. STRICT complains because

Re: [PHP] strict nannying ...

2012-04-15 Thread Stuart Dallas
On 15 Apr 2012, at 13:30, Lester Caine wrote: Stuart Dallas wrote: On 15 Apr 2012, at 11:44, Lester Caine wrote: I've got a machine set up with PHP5.4 and left the strict errors showing, and I'm falling at the first hurdle :) The functions for generating URL's are used both statically

Re: [PHP] strict nannying ...

2012-04-15 Thread Lester Caine
Stuart Dallas wrote: No code duplication but clear separation between static and instantiated usage. However, this is not the best way to structure this code IMO. The better option would be to extract the static parts into a separate class, and use that new class from the instantiated

Re: [PHP] strict nannying ...

2012-04-15 Thread Stuart Dallas
On 15 Apr 2012, at 15:02, Lester Caine wrote: Stuart Dallas wrote: No code duplication but clear separation between static and instantiated usage. However, this is not the best way to structure this code IMO. The better option would be to extract the static parts into a separate class,

Re: [PHP] strict nannying ...

2012-04-15 Thread Lester Caine
Stuart Dallas wrote: Stuart Dallas wrote: No code duplication but clear separation between static and instantiated usage. However, this is not the best way to structure this code IMO. The better option would be to extract the static parts into a separate class, and use that new class from

Re: [PHP] strict nannying ...

2012-04-15 Thread Stuart Dallas
On 15 Apr 2012, at 19:41, Lester Caine wrote: Stuart Dallas wrote: Stuart Dallas wrote: No code duplication but clear separation between static and instantiated usage. However, this is not the best way to structure this code IMO. The better option would be to extract the static parts

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, I can't see the post I sent several hours ago, if repeated, please reply to this one. Thanks! System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ubuntu system). I just want to use a customized session save handler to be triggered, so that I

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ubuntu system). I just want to use a customized session save handler to be triggered, so that I

[PHP] Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS5.5

2012-04-15 Thread Mingda
Sorry, wrong stackoverflow link. Here is the correct one: http://stackoverflow.com/questions/10150296/cant-make-custom-session-save-handler-workno-registered-method-called-in-cent#comment13018050_10150327 And here is the code for session: ?php class session { public static function init()

Re: [PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Tommy Pham
On Sat, Apr 14, 2012 at 9:27 AM, Mingda mingda...@gmail.com wrote: Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ubuntu system). This is