#20596 [NEW]: date function gives wrong result for format 't'

2002-11-23 Thread paul . dodd
From: [EMAIL PROTECTED]
Operating system: WIN 2000
PHP version:  4.2.1
PHP Bug Type: Date/time related
Bug description:  date function gives wrong result for format 't'



-- 
Edit bug report at http://bugs.php.net/?id=20596&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20596&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20596&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20596&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20596&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20596&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20596&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20596&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20596&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20596&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20596&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20596&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20596&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20596&r=isapi




#19386 [Fbk->Opn]: crash at if (preg_match('/(.|[\r\n])+/', $x)):

2002-09-17 Thread paul . dodd

 ID:   19386
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: *
 PHP Version:  4.2.3, 4.3.0-dev
 New Comment:

Tests of different lengths of string '$x' show that if
strlen($x) > 4040 the crash occurs i.e. with the last
text is 'Randomized-Controlled-Trial' php will crash. A
shorter script as requested is:
$len\n";
}
?>


Previous Comments:


[2002-09-13 12:31:15] [EMAIL PROTECTED]

I can reproduce the crash on Linux too. But could you try
shortening the example script to something bit smaller?




[2002-09-13 09:53:19] [EMAIL PROTECTED]

By php version 4.3.1 I mean 4.2.1 of course ;-)



[2002-09-13 07:20:54] [EMAIL PROTECTED]

Crash also occurred with php version 4.3.1. Binary windows
version was used in both cases. Doe not occur for all
values of $x (probably only for very long strings ?).






-- 
Edit this bug report at http://bugs.php.net/?id=19386&edit=1




#19386 [Fbk->Opn]: crash at if (preg_match('/(.|[\r\n])+/', $x)):

2002-09-17 Thread paul . dodd

 ID:   19386
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: *
 PHP Version:  4.2.3, 4.3.0-dev
 New Comment:

I've reproduced this using the php4-win32-latest snapshot.
The only difference is that it crashes at
char 3915 instead of 4041. Sorry, but not gdb hence no
backtrace.


Previous Comments:


[2002-09-17 07:56:38] [EMAIL PROTECTED]

And I can still reproduce it with the short script and using latest
CVS. (which has the new pcre lib)




[2002-09-17 07:10:20] [EMAIL PROTECTED]

I didn't see that Jani reproduced this.

FWIW, I can not reproduce using current CVS or with
PHP 4.2.1 (the oldest version I had to hand just now)
using the short script that you provided.



[2002-09-17 07:03:48] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Could you supply a backtrace?
Also, could you try with a non-stable snapshot from the
last couple of days as the PCRE library was updated recently.



[2002-09-17 05:22:14] [EMAIL PROTECTED]

Tests of different lengths of string '$x' show that if
strlen($x) > 4040 the crash occurs i.e. with the last
text is 'Randomized-Controlled-Trial' php will crash. A
shorter script as requested is:
$len\n";
}
?>



[2002-09-13 12:31:15] [EMAIL PROTECTED]

I can reproduce the crash on Linux too. But could you try
shortening the example script to something bit smaller?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19386

-- 
Edit this bug report at http://bugs.php.net/?id=19386&edit=1