PHP 4.0 Bug #3618: date function makes memory violation Error
| From: | cwjeong at mail dot posdata dot co dot kr | Date: | Fri, 25 Feb 2000 10:00:27 +0000 |
| Subject: | PHP 4.0 Bug #3618: date function makes memory violation Error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15980@lists.php.net to get a copy of this message | ||
From: cwjeong@mail.posdata.co.kr
Operating system: Korean Win NT 4.0
PHP version: 4.0 Beta 4 Patch Level 1
PHP Bug Type: Scripting Engine problem
Bug description: date function makes memory violation Error
$n = mktime(0, 0, 0, 3, 31, 1965);
$b_date = date("Y-m-d", $n); // Memory violation occur
$n returns -1 Is it not an Y2K bug? Is it OS problem?
What happen when date("Y-m-d", -1); function called on PHP4.0? I think you should have to
make exception processing.
I used on Windows NT Server 4.0 Korean Version
httpd : Apach Web Server 1.3.11
php4 : php 4.0 Beta 4 (pl1) Win32 binary module
Chang-Wha from Seoul