Php does not report an error. the Test environment is good, but there is a problem online. please take a look.

Source: Internet
Author: User
Php does not report an error. the Test environment is good, but there is a problem online. please take a look. If the red code is added, the problem may occur. if the red code is not added, it will be normal. Is this the problem? Can I discuss it in depth? Is it a stack issue?

Public function getUserStatus ($ uid, & $ userstatus)
{
$ Array = array (
'Level' => 0,
);

// The code is omitted in the middle.
$ Arr = $ this-> userstatus-> getParam ($ result );
$ Userstatus = $ arr [0];

$ Userproperty = array ();
$ Ret = $ this-> getUserProperty ($ uid, $ userproperty );
If ($ ret <0 ){
Return $ ret;
}
If (empty ($ ret )){
Return 0;
}
$ LevelArr = $ this-> getLevelAndTitle ($ userproperty ['Experience ']);
$ Userstatus ['level'] = $ levelArr ['level']; return 1;
}


Reply to discussion (solution)

If you only provide code snippets, you should describe the meaning of these codes.
What is "abnormal"

Every time we add 1.1 points, we will know whether it is a syntax error or a data error.

Starting with error messages and logs will solve the problem faster than you.

The server configuration is different from your local configuration.

The question of the landlord cannot be seen. the Forum contains an article titled "wisdom of asking questions". let's take a look at it and learn how to ask questions first.

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.