php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #894 php does not like sybase tinyint
Submitted: 1998-11-03 17:12 UTC Modified: 1999-11-05 03:55 UTC
From: mallsop at ind dot net Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.5 OS: Solaris 2.5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mallsop at ind dot net
New email:
PHP Version: OS:

 

 [1998-11-03 17:12 UTC] mallsop at ind dot net
How the bug unfolded:
I retrieved the $monthnum from a sybase query. $monthnum is a sybase tiny integer.
I then wanted to concatenate it to create a date and display it (see below).
$monthdate = $monthnum."/".$monthday."/".$monthyear;
echo $monthdate;
Php kept throwing in a line break <br> and chopping off everything after $monthnum
I changed the tinyint to an integer (in sybase) and that fixed it.
In summary: php does not like sybase tinyint
I hope this helps.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-05 03:55 UTC] thies at cvs dot php dot net
should be fixed in CVS
 [2021-09-03 16:33 UTC] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/659fbc4d32e90e6b1bc9969f72dc1d3f95db87e9
Log: Fix #894: DateTime::setTimezone never returns false
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC