Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-12 Thread Kanishka
if we use a date after 19 January 2038, we can not use 'strtotime' to get timestamp. http://en.wikipedia.org/wiki/Year_2038_problem On Mon, Nov 12, 2012 at 3:36 PM, Duken Marga wrote: > Try this: > > $todaydate = strtotime(date("D, M jS, Y g:i:s a")); > $showenddate = strtotime(date("D, M jS, Y

Re: [PHP] memory allocation error

2012-11-12 Thread Carol Peck
On 11/12/2012 11:51 AM, Matijn Woudt wrote: On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck > wrote: Sebastian, Yes, I do , but this particular error never gets into my custom handler. I have also set it so that fatal errors fall through, and that

Re: [PHP] memory allocation error

2012-11-12 Thread Matijn Woudt
On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck wrote: > Sebastian, > Yes, I do , but this particular error never gets into my custom handler. > I have also set it so that fatal errors fall through, and that doesn't > seem to make any difference (again, probably because it never gets there). > > Caro

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
On 11/12/2012 8:54 AM, Carol Peck wrote: Jim, I just found that the die didn't fix it after all - just ran into it again. So still looking for ideas! thanks, Carol Then it must be something in either your code or the way PHP is doing some garbage collection with the libs you are using. --

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
On 11/12/2012 7:50 AM, Carol Peck wrote: Jim, Thanks for your idea - using die prevents it from coming up. As I mentioned, it is rather random so sometimes hard to verify. My auto_prepend and auto_append have no value in php.ini. I'm wondering why you suggested that? If something was injec

Re: Re: [PHP] memory allocation error

2012-11-12 Thread James
> Original Message >From: James >To: "Carol Peck" , "Jim Lucas" >Cc: php-general@lists.php.net >Sent: Mon, Nov 12, 2012, 12:53 PM >Subject: Re: [PHP] memory allocation error > >This could be an issue with the library you're using, adodb, I'd check to see >if it has any debugging options

Re: [PHP] memory allocation error

2012-11-12 Thread James
This could be an issue with the library you're using, adodb, I'd check to see if it has any debugging options to enable. I'm not familiar with it at all but that may be helpful. I'd also check out adodbs bug tracker, if one exists. Another suggestion would be use a profiler, such as xdebug, I be

Re: [PHP] memory allocation error

2012-11-12 Thread Carol Peck
Jim, I just found that the die didn't fix it after all - just ran into it again. So still looking for ideas! thanks, Carol On 11/12/2012 8:09 AM, Jim Lucas wrote: On 11/11/2012 08:45 AM, Carol Peck wrote: Hi all, I've been chasing around a memory allocation error for some time and can't figure

Re: [PHP] memory allocation error

2012-11-12 Thread Carol Peck
Jim, Thanks for your idea - using die prevents it from coming up. As I mentioned, it is rather random so sometimes hard to verify. My auto_prepend and auto_append have no value in php.ini. I'm wondering why you suggested that? Best, Carol On 11/12/2012 8:09 AM, Jim Lucas wrote: On 11/11/

Re: [PHP] serialize() casts numeric string keys to integers

2012-11-12 Thread Adam Richardson
On Mon, Nov 12, 2012 at 2:18 AM, eyal.t wrote: > Hi all, > > Was wondering whether the fact that serialize() casts numeric string keys > to integers, is a bug, intended behaviour, or just something that is minor > enough not to have bothered anyone yet? > This behavior is consistent with the sta

Re: [PHP] memory allocation error

2012-11-12 Thread Jim Lucas
On 11/11/2012 08:45 AM, Carol Peck wrote: Hi all, I've been chasing around a memory allocation error for some time and can't figure it out. It is somewhat random - I can run the script 3 times and then it will happen, or sometimes the first time. It happens at the very end of a script, actually

Re: [PHP] memory allocation error

2012-11-12 Thread Carol Peck
Sebastian, Yes, I do , but this particular error never gets into my custom handler. I have also set it so that fatal errors fall through, and that doesn't seem to make any difference (again, probably because it never gets there). Carol On 11/11/2012 11:16 AM, Sebastian Krebs wrote: Hi, Do yo

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-12 Thread Duken Marga
Try this: $todaydate = strtotime(date("D, M jS, Y g:i:s a")); $showenddate = strtotime(date("D, M jS, Y g:i:s a", strtotime($showsRecord['end_date']))); if ($todaydate < $showenddate): echo "The date of the show has not yet arrived"; else: echo "The show has ended"; endif; You must conve

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-12 Thread ma...@behnke.biz
"Terry Ally (Gmail)" hat am 11. November 2012 um 19:30 geschrieben: > Hi all, > > I am having a problem with comparing time. I am using the following: > > $todaydate = date("D, M jS, Y g:i:s a"); > $showenddate = date("D, M jS, Y g:i:s a", > strtotime($showsRecord['end_date'])); > > if ($todayda