Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug in 4.1.0; _SESSION From: Andreas Aderhold (a.aderhold <email protected>)
Date: 12/21/01

Hi All,

found a bug

this one will cause a infinte loop in 4.1:
<?php
global $_SESSION; // this will cause a infinite loop
session_start();
phpinfo()
?>
Te docs say that $_SESSION is auto-global in 4.1.0 but it does not say, that
the explicit global declaration is not allowed. However I would like to use
the explicit global declaration for improved code readbility.

Andi

--
www.binarycloud.com

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>