From: drei at porrigt dot se
Operating system: Linux mini 2.4.22
PHP version: 4.3.3
PHP Bug Type: MySQL related
Bug description: left()

Description:
------------
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:
--------------
nothing.

--
Edit bug report at [url]http://bugs.php.net/?id=26091&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26091&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26091&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26091&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26091&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26091&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26091&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26091&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26091&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26091&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26091&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26091&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26091&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26091&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26091&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26091&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26091&r=float[/url]