#35803 [Bgs]: some encoding problems
ID: 35803
User updated by: omidmr at gmail dot com
Reported By: omidmr at gmail dot com
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Win XP
PHP Version: 5.1.1
New Comment:
dear tony, this is a bug, could you see the sources please?
both two persian_log2vis sources are same, except in "str" and "string"
sections.
i used "$string" every where and it works fine, except here.
Previous Comments:
------------------------------------------------------------------------
[2005-12-25 16:08:41] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2005-12-25 16:07:04] omidmr at gmail dot com
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 this bug report at http://bugs.php.net/?id=35803&edit=1
Thread (3 messages)