PHP Classes

File: vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml   Download  
File: vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 1,495 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Detect Use Of `ini_set()" > <standard> <![CDATA[ Using ini_set() and similar functions for altering PHP settings at runtime is discouraged. Changing runtime configuration might break other plugins and themes, and even WordPress itself. ]]> </standard> <code_comparison> <code title="Valid: ini_set() for a possibly breaking setting."> <![CDATA[ // ini_set() should not be used. ]]> </code> <code title="Invalid: ini_set() for a possibly breaking setting."> <![CDATA[ ini_set( <em>'short_open_tag'</em>, 'off' ); ]]> </code> </code_comparison> <standard> <![CDATA[ For some configuration values there are alternative ways available - either via WordPress native functionality of via standard PHP - to achieve the same without the risk of breaking interoperability. These alternatives are preferred. ]]> </standard> <code_comparison> <code title="Valid: WordPress functional alternative."> <![CDATA[ <em>wp_raise_memory_limit();</em> ]]> </code> <code title="Invalid: ini_set() to alter memory limits."> <![CDATA[ ini_set( <em>'memory_limit'</em>, '256M' ); ]]> </code> </code_comparison> </documentation>