|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26091 left()
Submitted: 2003-11-03 01:32 UTC Modified: 2003-11-17 18:16 UTC
From: drei at porrigt dot se Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.3.3 OS: Linux mini 2.4.22
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: drei at porrigt dot se
New email:
PHP Version: OS:


 [2003-11-03 01:32 UTC] drei at porrigt dot se
it could be that php is compiled the wrong way, or this could be a bug. im not sure.

the problem is with the left() syntax in mysql, it wont output anything.

working fine when i run it in a shell, but not with php!

Reproduce code:
select left(blob,5) from table

Expected result:
if blob would contain 'abcdefghijklmnopqrstuvwxyz'

it should return 'abcde'

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-03 03:03 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2003-11-17 18:16 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 03:01:29 2024 UTC