From:             fred at cashette dot com
Operating system: *
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  ord() cast with (unsigned char), chr() with (signed char)

Description:
------------
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?revision=1.445.2.14.2.28&view=markup&sortby=date

PHP_FUNCTION(ord) ...
RETURN_LONG((unsigned char) Z_STRVAL_PP(str)[0]);

..

PHP_FUNCTION(chr) ...
temp[0] = (char) Z_LVAL_PP(num);

would not like use (unsigned char) in PHP_FUNCTION(chr) ? or opposite ?


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

Reply via email to