ID: 35751
User updated by: lehmann at ans-netz dot de
Reported By: lehmann at ans-netz dot de
Status: Open
Bug Type: Date/time related
Operating System: FreeBSD 6.0/alpha
PHP Version: 5.1.1
New Comment:
i meant FreeBSD 6.0 as said in the header, _not_ 5 as stated in the
body.
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 19:11:13] lehmann at ans-netz dot de
Description:
------------
Using date() in combination with a timestamp makes my httpd segfault on
FreeBSD 5.0/alpha - it worked with PHP 5.0.5 like a charm.
Using just date() with a format string, but w/o a timestamp works w/o
problems.
Reproduce code:
---------------
<?echo date('Y',10000)?>
Expected result:
----------------
it should work?
Actual result:
--------------
root@dill php5> ktrace httpd -X
pid 30132 (httpd): unaligned access: va=0x11ffc72c pc=0x160a59720
ra=0x160a59e44 op=stq
Segmentation fault
Exit 139
root@dill php5>
last part of the ktrace:
27732 httpd RET read 487/0x1e7
27732 httpd CALL stat(0x1605da495,0x11ffe658)
27732 httpd NAMI "/etc/nsswitch.conf"
27732 httpd RET stat 0
27732 httpd CALL stat(0x1605da495,0x11ffe658)
27732 httpd Events dropped.
27732 httpd RET stat 0
27732 httpd Events dropped.
27732 httpd CALL open(0x1202e43c0,0,0x1b6)
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET open 23/0x17
27732 httpd Events dropped.
27732 httpd RET open 23/0x17
27732 httpd Events dropped.
27732 httpd RET stat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd RET lstat 0
27732 httpd Events dropped.
27732 httpd CALL gettimeofday(0x11ffc548,0)
root@dill php5>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35751&edit=1