Zendstudio software warning.

Source: Internet
Author: User
Zendstudio software warning. There is no problem in code running, and there is no problem in writing other software, but there will be a small yellow warning in zend studio. do you know how to block this warning when using this software?


Reply to discussion (solution)

Warning?

Window-> preference-> php-> Code Analyzer sets various warning error prompts on the right...
The yellow warning reminds you to pay attention to the points or write the code is not rigorous enough, it is helpful for you to write the code, why Shield it

Window-> preference-> php-> Code Analyzer sets various warning error prompts on the right...
The yellow warning reminds you to pay attention to the points or write the code is not rigorous enough, it is helpful for you to write the code, why Shield it


Some warnings are correct and can be modified, but some warnings cannot be modified. for example, the variables in other files are not defined on this page, it will display a warning that it cannot be found, but it can run normally. The most annoying thing is to reference the classes on other pages, because they are not instantiated on this page. when a method is called, a warning is given. there are too many warnings on one page. But I did not have these warnings when I wrote them using other software.

For example, the following problems occur:
I have a configuration file, such as conn. php.

$ A = 50; (for example )!

Let me make a judgment in another index. php file,

Include 'Conn. php ';

Echo $;
At this time, zend studio 7.1 will prompt that my variable is null, Undefined variable '$'
But it still runs normally for 50, but the warning is inexplicable.

I understand what you mean. if you develop this program in zend studio as a project, it intelligently associates all files of the entire project, determine whether various variables, functions, and instances are valid. Otherwise, they are not 'ide '.
Too many warnings appear in your program. most of them use zend studio as a simple editor. you can create a new project and import the program to try again.

If possible, create a project

For example, the following problems occur:
I have a configuration file, such as conn. php.

$ A = 50; (for example )!

Let me make a judgment in another index. php file,

Include 'Conn. php ';

Echo $;
At this time, zend studio 7.1 will prompt that my variable is null, Undefined variable '$'
But it still runs normally for 50, but the warning is inexplicable ......

Of course, you can set a warning level or even no warning.

How to create a PROJECT? I just created a PHP PROJECT in the file.

Ignore.

Window> Preference> General> Editors> Annotations> cancel all on the right of Warnings.

For example, the following problems occur:
I have a configuration file, such as conn. php.

$ A = 50; (for example )!

Let me make a judgment in another index. php file,

Include 'Conn. php ';

Echo $;
At this time, zend studio 7.1 will prompt that my variable is null, Undefined variable '$'
But it still runs normally for 50, but the warning is inexplicable.





Write $ a in the file to be used to write global $.
Related Article

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.