Bug #80007 [NEW]: Potential type confusion in unixtojd() parameter parsing

From: Date: Sat, 22 Aug 2020 10:01:37 +0000
Subject: Bug #80007 [NEW]: Potential type confusion in unixtojd() parameter parsing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228706@lists.php.net to get a copy of this message
From:             cmb
Operating system: *
PHP version:      7.3Git-2020-08-22 (Git)
Package:          Calendar related
Bug Type:         Bug
Bug description:Potential type confusion in unixtojd() parameter parsing

Description:
------------
The unixtojd() parameter parsing assumes that time_t is the same
as zend_long, but that is not necessarily given.  POSIX only
mandates that "time_t shall be an integer type."[1]

[1]
<https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html>


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80007&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80007&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80007&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80007&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80007&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80007&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80007&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80007&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80007&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80007&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80007&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80007&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80007&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80007&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80007&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80007&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80007&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80007&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#228706) next »