php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13647 VT_DATE error
Submitted: 2001-10-11 18:38 UTC Modified: 2001-10-17 09:16 UTC
From: alain at sonic dot net Assigned:
Status: Closed Package: COM related
PHP Version: 4.0CVS-2001-10-11 OS: win98
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alain at sonic dot net
New email:
PHP Version: OS:

 

 [2001-10-11 18:38 UTC] alain at sonic dot net
 /*
VT_DATE  Seems to produce a currency value in php4.08 dev
A value denoting a date and time was specified. Dates are represented as double-precision numbers, where midnight, January 1, 1900 is 2.0, January 2, 1900 is 3.0, and so on.
  */ 

  	 $varDATE = new Variant(3.0,VT_DATE);
 print $varDate->value;
#prints ($)3.0 (Currency value) instead of:1/3/1900

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-17 09:16 UTC] phanto@php.net
new Variant(<>, VT_DATE); expected a php-date long and not a float, thus the conversion failed.
i added a check if the var is a float or a long into the cvs version (and the version i sent you) and do the right conversion now.

i still don't understand why you got a currency value, couldn't reporduce this.

harald.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 19:01:30 2024 UTC