php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42277 bug in processing commentary
Submitted: 2007-08-12 13:30 UTC Modified: 2007-08-20 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: partyspb at yandex dot ru Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.4RC1 OS: FreeBSD 6.1-RELEASE
Private report: No CVE-ID: None
 [2007-08-12 13:30 UTC] partyspb at yandex dot ru
Description:
------------
PHP 5.2.3

bug in processing commentary

code:
$my_var='1';
function my_fun() 
{//my text (I use russian) 
GLOBAL $my_var;
$var=$my_var;
echo $var;
} 
my_fun();

return: Notice: Undefined variable: $my_var .......

(don't job "GLOBAL") but if replace //my text   to   /* my text */

return: 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-12 13:51 UTC] johannes@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


.
 [2007-08-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-10-15 21:27 UTC] marc dot bau at gmx dot net
Hi

i think i've got the same problem with 5.2.4 on Windows with IIS and ISAPI. "global" variables looks simply lost. I've tried to install a multilingual version of Drupal 5.2 and as i figured out the "global $install_locale;" variable gets lost anywhere...

I have downgraded to PHP 5.2.1 re-testet (works) and upgraded back to PHP 5.2.3 works, too.

Greetings
Marc
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 16:01:29 2024 UTC