Bug #11001 Updated: ini_set() of 'magic_quotes_sybase' has no effect

From: Date: Mon, 21 May 2001 14:35:29 +0000
Subject: Bug #11001 Updated: ini_set() of 'magic_quotes_sybase' has no effect
Groups: php.dev 
Request: Send a blank email to php-dev+get-56053@lists.php.net to get a copy of this message
ID: 11001 Updated by: rasmus Reported By: mike@newfangled.com Status: Closed Bug Type: Unknown/Other Function Operating system: PHP Version: 4.0.5 Assigned To: Comments: I suppose to some extent it is. The chart on php.net/ini_set just specifies where values can be changed. It doesn't specify whether changing that value will actually have the desired effect. Like you saw, you could change the value in your script, the problem is just that the action that the value affects happens before your script is run, so the change doesn't do anything useful. The ini_set page should be updated to reflect this. Previous Comments: --------------------------------------------------------------------------- [2001-05-21 16:35:26] mike@newfangled.com Is it a documention issue? The Online Manual ============================= magic_quotes_sybase "0" PHP_INI_ALL PHP_INI_ALL 7 Entry can be set anywhere --------------------------------------------------------------------------- [2001-05-21 16:32:14] mike@newfangled.com Is it a documention issue? The Online Manual ============================= magic_quotes_sybase "0" PHP_INI_ALL PHP_INI_ALL 7 Entry can be set anywhere --------------------------------------------------------------------------- [2001-05-21 16:26:50] rasmus@php.net Not a bug. magic quotes are done before your script is executed, so you can't change these settings in your script. --------------------------------------------------------------------------- [2001-05-21 16:23:33] mike@newfangled.com Trying to set magic_quotes_sybase with ini_set('magic_quotes_sybase', 1 ) even though a ini_get() says the value is set it has no effect on the handling of quotes. I have to set the value to 'on' in the PHP.ini file in order for this to work. I have tried the following without any success. ini_set('magic_quotes_sybase', 1 ) ini_set('magic_quotes_sybase', '1' ) ini_set('magic_quotes_sybase', -1 ) ini_set('magic_quotes_sybase', '-1' ) ini_set('magic_quotes_sybase', true ) ini_set('magic_quotes_sybase', 'on' ) --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11001&edit=2

« previous php.dev (#56053) next »