Development

#39 (magic_quotes_qpc and register_globals checks php.yml match value is incorrect)

You must first sign up to be able to contribute.

Ticket #39 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

magic_quotes_qpc and register_globals checks php.yml match value is incorrect

Reported by: spascoe Assigned to:
Priority: trivial Milestone: 0.6.0
Component: Version: 0.5.X
Keywords: Cc:
Qualification:

Description

The data/symfony/config/php.yml file has

magic_quotes_qpc:            off
register_globals:            off
zend.ze1_compatibility_mode: off

In symfony/config/sfPhpConfigHandler.php it compares this value with the value coming from ini_get.

The values coming from ini_get are 0 or 1, not 'on' or 'off', consequently, `php.yml' should have the 'off' replaced with '0'.

Change History

11/16/05 06:15:50 changed by anonymous

I've patched the lib/symfony/config/sfPhpConfigHandler.class.php to indicate the location of the php.ini file, as well as show what the current value of the 'check'ed items.

I will post it in the dev forum, as I was unable to attach the file here.

11/16/05 07:45:28 changed by fabien

  • status changed from new to closed.
  • resolution set to invalid.

The spyc library taht parses the .yml file returns 0 for 'off', '0', '-' values and 1 for 'on', '1', '+' values. So in the configuration classes, the value for magic_quotes_qpc are 0 or 1 and not on or off. No need to patch.