Disposal method of void function in PHP5.3

Source: Internet
Author: User
Tags ereg
Copy and paste the processing method of the void function in PHP5.3... the void function is as follows: call_user_method () (replace with call_user_func () call_user_method_array () (replace with call_user_func_array () define_syslog_v processing method of the void function in PHP5.3)
Copy and paste...

The void function is as follows:

Call_user_method () (use call_user_func)

Call_user_method_array () (use call_user_func_array)

Define_syslog_variables ()

Dl ()

Ereg () (use preg_match () instead)

Ereg_replace () (use preg_replace)

Eregi () (replaced by preg_match () and 'I' modifier)

Eregi_replace () (use preg_replace () in combination with the 'I' modifier)

Set_magic_quotes_runtime () and its alias function magic_quotes_runtime ()

[Color = olive] session_register () (use $ _ SESSION to replace all variables)

Session_unregister () (use $ _ SESSION to replace all variables)

Session_is_registered () (use $ _ SESSION to replace all variables)

Set_socket_blocking () (use stream_set_blocking)

Split () (use preg_split () instead)

Spliti () (replaced by preg_split () and 'I' modifier)

SQL _regcase ()

Mysql_db_query () (replace mysql_select_db () with mysql_query)

Mysql_escape_string () (use mysql_real_escape_string)

The name of the region passed by the string is discarded. use the LC _ * series constant instead.

The is_dst parameter of mktime (). it is replaced by the new time zone handler.

Solution: replace regular expressions in the editplus editor.

Replace ereg (), eregi (): replace with preg_match

Ereg \ ("([^"] +) "with: preg_match ("/\ 1 /"

Ereg \ ('([^ "] +)' is replaced with: preg_match ('/\ 1 /'

Eregi \ ("([^"] +) "with: preg_match ("/\ 1/I"

Replace eregi \ ('([^ "] +)' with: preg_match ('/\ 1/I'

Replace ereg_replace (), eregi_replace (): replace with preg_replace ()

Ereg_replace \ ("([^"] +) "with: preg_replace ("/\ 1 /"

Replace ereg_replace \ ('([^ "] +)' with: preg_replace ('/\ 1 /'

Ereg_ireplace \ ("([^"] +) "with: preg_replace ("/\ 1/I"

Replace ereg_ireplace \ ('([^ "] +)' with: preg_replace ('/\ 1/I'

If the first parameter of ereg_replace is not a regular expression, replace it directly with str_replace.

Replace split with explode or preg_split

------ Solution --------------------
"Discard the region name passed by string. use LC _ * series constants instead"

What does this sentence mean?
------ Solution --------------------
Discussion

"Discard the region name passed by string. use LC _ * series constants instead"

What does this sentence mean?

------ Solution --------------------
It seems that
= & Replace =

I recently moved my project to 5.3. I was lucky to have no impact on other tests except for the extensions I wrote.
------ Solution --------------------
Install 5.2 ~

Define can be used in simple scenarios.
You can replace your code with regular expressions.
------ Solution --------------------
Hmm, understand

Discussion

5.3.0 This function now throws an E_DEPRECATED notice if a string is passed to the category parameter instead of one of the LC _ * constants.

String setlocale (int $ category, string $ locale [, str ......

------ Solution --------------------
Learned

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.