PHP 4 Bug Database summary - http://bugs.php.net
Num Status Summary (763 total including feature requests)
===[*Directory/Filesystem functions]
14049 Assigned Inconsistent return in realpath
===[*Encryp
At 07:03 23/08/2003, DvDmanDT wrote:
Wait a sec... When did const become a keyword?
In PHP 5.0.
And since when can you
initialize variables from outside a constructor/function?
Since PHP 3.0 :)
Zeev
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net
Zeev,
speaking of const, i have a feature request. why not accept "const" in
the global context and create a compile-time global constant ?
e.g.
const FOO = 1 ;
const BAR = 2;
class Barbara {
const Barbara::BUSH = FOO;
};
i'd much prefer this as an alternative to the r
hmm. but you can reference class constants without class/self::
when creating futher constants ('const bla = foo << 1;')
and this works, too:
bla(4);
$x->bla(3);
?>
>> Output:
>> no it's not
>> yes it's bar
Zeev Suraski wrote:
At 14:35 22/08/2003, Arjen Brouwer wrote:
Should'nt this work? Curre
At 20:40 23/08/2003, l0t3k wrote:
Zeev,
speaking of const, i have a feature request. why not accept "const" in
the global context and create a compile-time global constant ?
e.g.
const FOO = 1 ;
const BAR = 2;
class Barbara {
const Barbara::BUSH = FOO;
};
i'd much prefer
Yes, there appears to be some inconsistency here. We'll look into it.
Zeev
At 21:14 23/08/2003, Brad Bulger wrote:
hmm. but you can reference class constants without class/self::
when creating futher constants ('const bla = foo << 1;')
and this works, too:
bla(4);
$x->bla(3);
?>
>> Output:
>> no
Hi Devs,
is there a possibility to get a php function like
declare_superglobal($_MYVAR);
And then be able to use $_MYVAR as the
existing superglobals ($_GET, $_SESSION, etc.) ???
I think, it would be a really nice feature!
Is that a huge problem to get this work?
Regards,
Matthias
--
PHP Interna
I am interested in collaborating with php.net.
Estoy interesado en colaborar con php.net.
Soy programador sobre PHP desde el año 2000.
I am programmer on PHP since of 2000.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
This has been discussed in the past (see the archives of either this list
or engine2).
You'll have to manage with the existing ones.
Andi
At 09:21 PM 8/23/2003 +0200, Matthias Nothhaft wrote:
Hi Devs,
is there a possibility to get a php function like
declare_superglobal($_MYVAR);
And the
Hi Andi Gutmans, you wrote:
Hi,
This has been discussed in the past (see the archives of either this
list or engine2).
You'll have to manage with the existing ones.
Very sad. Why is that?
I took a look into the archive but couldn't find any reason!?
Is it such a hard problem to get this work?
On Sat, Aug 23, 2003 at 11:15:34PM +0200, Matthias Nothhaft wrote:
> $_MYFW->method_a(); is nicer than $GLOBALS['_MYFW']->method_a();
> and also shorter for vars u're using very often...
global $_MYFW;
works fine there.
> Regards,
> Matthias
--
Regards,
Stefan Walk
<[EMAIL PROTECTED]>
--
PHP
On Sat, 2003-08-23 at 21:15, Matthias Nothhaft wrote:
[...User-land superglobals...]
> $_MYFW->method_a(); is nicer than $GLOBALS['_MYFW']->method_a();
> and also shorter for vars u're using very often...
Use the singleton pattern:
MYFW::getInstance()->method_a();
Global variables are evil.
-
On Sat, Aug 23, 2003 at 09:58:49PM +, Timm Friebe wrote:
> On Sat, 2003-08-23 at 21:15, Matthias Nothhaft wrote:
> Use the singleton pattern:
> MYFW::getInstance()->method_a();
Which doesn't work yet, to prevent misunderstandings...
> Global variables are evil.
Anything is evil if misused.
* Thus wrote Zeev Suraski ([EMAIL PROTECTED]):
> At 20:40 23/08/2003, l0t3k wrote:
> >Zeev,
> > speaking of const, i have a feature request. why not accept "const" in
> >the global context and create a compile-time global constant ?
> >e.g.
> >
> >const FOO = 1 ;
> >const BAR = 2;
> >
> >
14 matches
Mail list logo