From:             
Operating system: Linux slamp 2.6.32-24-generic-pa
PHP version:      trunk-SVN-2010-10-04 (SVN)
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:htmlspecialchars returns empty string

Description:
------------
ext/standard/html.c has svn commit with revision #296685.

This changed default character set.

So now htmlspecialchars returns an empty result with any (non utf) cyrillic
input.



Test script:
---------------
echo htmlspecialchars("папа");

Expected result:
----------------
папа

Actual result:
--------------
an empty string

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

Reply via email to