Get_magic_quotes_gpc

broken image


  • Hi,

    When using PHP 7.4 I get the following depreciated warning:

    Function get_magic_quotes_gpc() is deprecated

    I understand this is a warning but depending on what Admin page I am on in the backend, there is some considerable time added to database queries/page load times in the backend.

    Kind regards,

    Simon

What Is the After School Club/ECA? The after-school club is available for all students in all age groups who are interested in competitive gaming and who are keen on competing in an environment that is safe, secure and monitored by teachers and professionals. Besides gaming itself, our ECA's offer the students the opportunity to learn about. While doing a data insert, it is best to use the function getmagicquotesgpc to check if the current configuration for magic quote is set or not. If this function returns false, then use the function addslashes to add slashes before the quotes.

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time. Getmagicquotesgpc ( void): bool. Returns the current configuration setting of magicquotesgpc. Keep in mind that attempting to set magicquotesgpc at runtime will not work. For more information about magicquotes, see this security section.

  • Yes also seeing this – the warning message appears in the admin dashboard and gives further warnings from wordpress about ‘output before headers'.

    Hello! I am using version 1.9.3

    The get_magic_quotes_gpc deprecated warning seems still exists in the following files
    menu-editor-core.php line 3454
    might be in AjaxWrapper.php line 451

    For your reference

  • The topic ‘Issue with PHP 7.4 Function get_magic_quotes_gpc() is deprecated' is closed to new replies.
Warning

Get_magic_quotes_gpc Replacement

This function has been DEPRECATED as of PHP 7.4.0. Relying on this function is highly discouraged.

Description

Returns the current configuration setting of magic_quotes_gpc

Get_magic_quotes_gpc()

Keep in mind that attempting to set magic_quotes_gpc at runtime will not work.

Get_magic_quotes_gpc

For more information about magic_quotes, see this security section.

Get_magic_quotes_gpc() in php

Return Values

Returns 0 if magic_quotes_gpc is off, 1 otherwise. Or always returns FALSE as of PHP 5.4.0.

Examples

Example #1 get_magic_quotes_gpc() example

Get_magic_quotes_gpc() Is Deprecated Phpmyadmin

Notes

Php Get_magic_quotes_gpc

Note:

Get_magic_quotes_gpc
Get_magic_quotes_gpc replacement

Keep in mind that attempting to set magic_quotes_gpc at runtime will not work.

For more information about magic_quotes, see this security section.

Return Values

Returns 0 if magic_quotes_gpc is off, 1 otherwise. Or always returns FALSE as of PHP 5.4.0.

Examples

Example #1 get_magic_quotes_gpc() example

Get_magic_quotes_gpc() Is Deprecated Phpmyadmin

Notes

Php Get_magic_quotes_gpc

Note:

If the directive magic_quotes_sybase is ON it will completely override magic_quotes_gpc. So even when get_magic_quotes_gpc() returns TRUE neither double quotes, backslashes or NUL's will be escaped. Only single quotes will be escaped. In this case they'll look like: '





broken image