PHP 4.0 Bug #4293: global doesn't work with class references but $GLOBALS do
| From: | frip at bigfoot dot com | Date: | Tue, 02 May 2000 08:36:04 +0000 |
| Subject: | PHP 4.0 Bug #4293: global doesn't work with class references but $GLOBALS do | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18346@lists.php.net to get a copy of this message | ||
From: frip@bigfoot.com
Operating system: AIX 4.3
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Scripting Engine problem
Bug description: global doesn't work with class references but $GLOBALS do
global $ACTUAL_FORM;
$form = new my_class;
$GLOBALS["ACTUAL_FORM"] = &$form;
#$ACTUAL_FORM = &$form;
If we consider both lines equivalent for any other kind of variables, the second one doesn't
work for class references.
Here are my compilation options:
Configure command: './configure' '--with-apache=../apache_1.3.12'
'--enable-track-vars'
'--prefix=/soft/php-4.0RC1' '--with-yp'
'--with-sybase-ct=/soft/sybase'
'--with-ldap=/soft/openldap-1.2.1' '--with-gdbm=/soft/gdbm-1.7.3'
'--with-gd=/soft/gd-1.7.3'
'--with-zlib=/soft/zlib-1.1.3' '--enable-sysvshm' '--enable-sysvsem'
'--enable-xml'
'--with-mysql=/soft/mysql-3.22.27' '--enable-trans-sid'
'--disable-debug'
Greetings
Frip'