#46966 [Opn->Fbk]: compact() fails for underscored and case-sensitive var names

From: Date: Thu, 01 Jan 2009 10:39:57 +0000
Subject: #46966 [Opn->Fbk]: compact() fails for underscored and case-sensitive var names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132478@lists.php.net to get a copy of this message
 ID:               46966
 Updated by:       jani@php.net
 Reported By:      sohaib dot muneer at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
-Operating System: Vista
+Operating System: *
 PHP Version:      5.2.8
 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 the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




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

[2008-12-29 22:32:31] sohaib dot muneer at gmail dot com

Description:
------------
I have noticed that the function "compact()" fails for underscored
variable names OR variable names that have one or more capital letters.
For example, compacting $my_name won't work, similarly $myName or
$MyName won't work, but $myname would work good.
This should be included in the documentation && any reason as to why
it's like that ?
And yes! i checked the other bug reports, sure I understand the
superglobals problem but this is different, underscore and / or
case-sensitive variable names don't work



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


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



Thread (2 messages)

« previous php.bugs (#132478) next »