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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 18 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 09:01:27 2024 UTC