From:             omidmr at gmail dot com
Operating system: Win XP
PHP version:      5.1.1
PHP Bug Type:     Scripting Engine problem
Bug description:  some encoding problems

Description:
------------
i developed a function for inserting RTL text in images with GD
(http://developer.berlios.de/projects/persian-log2vis/)

but i faces a strange bug, but i really cannot recognize it is php bug, or
multibyte bug or fribidi bug.

look at my source code, i used $str as input parameter for my function, i
passed it by reference.

if i change $str to $string, it retrun an unwanted result!

Reproduce code:
---------------
you can directly see source codes here:
http://www.oxygenws.com/phpbug/

the persian_log2vis.phps is the correct file and the persian_log2vis2.phps
is the bad file (ONLY $str replaced with $string)

the example.php works with the correct function and example2.php works
with the the bad one.

to run these files, you need multibyte and fribidi extension.

Expected result:
----------------
this function generate an image, really i cannot describe it, you must
test it on your own, sorry :(

you can test example.php that i created. after requesting example.php,
click on submit and see the result.




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

Reply via email to