Issues

ZF-7521: The Zend Tool zf.php script uses $_ENV instead of getenv(), in recent releases of php, the $_ENV superglobal is not populated in the recommended php.ini file

Issue Type: Bug Created: 2009-08-07T12:02:41.000+0000 Last Updated: 2009-08-12T10:35:46.000+0000 Status: Resolved Fix version(s): - 1.9.1 (11/Aug/09)

Reporter: Peter Chapman (chapmanp) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments: - zf.php

Description

Recent versions of the distributed/recommended php.ini file state that the superglobal variable order should be "GPCS" (i.e. variables_order = "GPCS"). Since E is omitted, the $_ENV superglobal is never populated and the ini file recommends always using getwnv() in preference to $_ENV.

The Zend Tool zf.php file uses $_ENV and getenv() erratically, sometimes checking for the existence of an environment var with getenv() and then assuming it's existence by referencing the $_ENV array. All references in this file should use getenv().

Comments

Posted by Peter Chapman (chapmanp) on 2009-08-07T12:33:02.000+0000

I have attached the file with $_ENV factored out in favor of getenv()

Posted by Ralph Schindler (ralph) on 2009-08-10T10:18:29.000+0000

Fixed in trunk in r17522 and 1.9 release branch in r17524

Posted by Ralph Schindler (ralph) on 2009-08-12T10:35:46.000+0000

Updating fix information

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts