ID:               36270
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tihon at netcbc dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      5.1.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2006-02-03 01:51:08] tihon at netcbc dot com

Description:
------------
Well, when i was using two operators "for()" and one of them was
included into another like "for(){for(){}}". I had noticed they at
Windows internal variables of these two operators are not intersected.
You will see the sense of my words further in example.

Reproduce code:
---------------
for($i=$start_point;$i<count($videos);$i++)
{
        $video = $videos[$i];
        $langs_html = '';
        $lang_ids = unserialize($video->LanguageId);
        foreach($lang_ids as $lang_id)
        {
                $lang = new Lang;
                $lang->Id = $lang_id;
                $lang->init();
                $langs_html .= '<td width="50" align="center"><img
src="./index_files/checkmark.gif"></td>';
        }
        for($i=0;$i<(count($langs)-count($lang_ids));$i++)
        {
                $langs_html .= '<td width="50" align="center">&nbsp;</td>';
        }
}

Expected result:
----------------
I was expected to get an array divided into two HTML tables. I have
pasted not full code to you. But if you try to use even this example of
my code you will see, that $i variable of outer operator "for()" does
not conflicts with variable $i of inner operator "for()". Just try to
output the value of $i and you will see that it remains unchaged within
outer operator.

But at Unix version of PHP that was happening (PHP Version 4.3.9).

Actual result:
--------------
Read in expected result section. Everything was described there.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36270&edit=1

Reply via email to