|  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
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
24 + 20 = ?
Subscribe to this entry?

 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 16:03:34 2021 UTC