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

2012-04-15 Thread Mingda
Sorry, wrong link provided, correct link is: http://stackoverflow.com/questions/10150296/cant-make-custom-session-save-handler-workno-registered-method-called-in-cent#comment13018050_10150327 On 2012/4/15 0:27, Mingda wrote: Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a str

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

2012-04-15 Thread Mingda
Hi, Thanks, it's originally is /var/lib/php/session, I double it's privilege problem, so changed to /tmp. And I Followed your advice for setenforce off, but can't make it work. Mingda On 2012/4/16 14:13, Alain Williams wrote: On Sun, Apr 15, 2012 at 12:27:00AM +0800, Mingda wrote: Hi, All,

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

2012-04-15 Thread Alain Williams
On Sun, Apr 15, 2012 at 12:27:00AM +0800, Mingda 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). > > I just wa

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 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 your clue on ho

[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: session_set_save_handler('session::open', 'session:

[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] 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 ub

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 extra

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 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: 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 version.

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 b

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 t

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 ma

[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' i