From:             arion_ at msn dot com
Operating system: Windows XP SP1
PHP version:      4.3.4
PHP Bug Type:     MSSQL related
Bug description:  If a field is empty it returns one blank space character.

Description:
------------
If a field is empty it returns one blank space character.

Reproduce code:
---------------
<?php
$host="XXX";
$usuario="User";
$password="Password";
$bbdd="BBDD";
$conexion=mssql_connect("$host","$usuario","$password");

$qry="SELECT  Field
        FROM  dbo.Table";
$handle=mssql_query($qry);
$registro=mssql_fetch_row($handle);
$Nothing=$registro[0];
echo "Just" .$Nothing. "DoIt";
?>

Expected result:
----------------
JustDoIt

Actual result:
--------------
Just DoIt

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

Reply via email to