From:             
Operating system: centos 5.3
PHP version:      5.3.2
Package:          Strings related
Bug Type:         Bug
Bug description:09 is no longer a valid value for chr() function

Description:
------------
you can no longer pass 09 int ascii value to chr() function to get a "\t"
return value.



I was previously running version 5.2.6 of php on my server a upgraded to
version 5.3.2



A few of my providers send ascii with preceeding zero.



Please let me know if 09 is no longer supported as a value that can be
passed to chr().

Test script:
---------------
// 5.3.2 returns 0

// 5.2.6 return "\t"

ord(chr(09));



// 5.3.2 returns "\t"

// 5.2.6 return "\t"

ord(chr(9));

Expected result:
----------------
expected result is that both 09 and 9 should return "\t"

Actual result:
--------------
actual result is 09 returns null

-- 
Edit bug report at http://bugs.php.net/bug.php?id=51294&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51294&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51294&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51294&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51294&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51294&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51294&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51294&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51294&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51294&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51294&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51294&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51294&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51294&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51294&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51294&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51294&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51294&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51294&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51294&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51294&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51294&r=mysqlcfg

Reply via email to