Re: magic_quotes and the question of BC

From: Date: Mon, 11 Feb 2008 11:09:23 +0000
Subject: Re: magic_quotes and the question of BC
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-35364@lists.php.net to get a copy of this message
> If those application are written properly, they also have to check for > the existance of the functions even with current PHP version since it is > possible to disable them altogether. So it shouldn't matter if they're > removed for them.. ;) Function is standard for PHP4-5. get_magic_quotes_gpc() does not change php settings and only returns status of magic quotes. Any function can be disabled with disable_functions. If user does that, he or she is deliberately breaking his setup and he/she is the one that should solve the issues. If developers follow your advice, they will have to check for any php function before using it. In case of magic quotes people just have to check for function or php version. It is one of those things that make PHP6 different from older PHP versions. Core written for both versions will check php version or existence of get_magic_quotes_gpc() -- Tomas

« previous php.internals (#35364) next »