php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35803 some encoding problems
Submitted: 2005-12-25 16:07 UTC Modified: 2005-12-25 16:24 UTC
From: omidmr at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.1 OS: Win XP
Private report: No CVE-ID: None
 [2005-12-25 16:07 UTC] 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.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-25 16:08 UTC] 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:24 UTC] omidmr at gmail dot com
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 12:01:33 2025 UTC