Code Explorer can't handle the @ symbol in PHP

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
gLes
Posts: 33
Joined: Sat Aug 27, 2005 6:01 pm
Location: Budapest, Hungary
Contact:

Code Explorer can't handle the @ symbol in PHP

Post by gLes »

Hi!

I don't use code explorer very often but I tried it just now and noticed that when I use the @ symbol before certain includes then they're not listed.

I'm using version 7.1.0.66.

Best regards,
gLes
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Yup, this does this in 7.2 too. Guess it'll get added to the 'Fix it' list, but it'll probably appear near the bottom, as its not a high priority bug.

Ta for reporting it though.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Can you please help and post the piece of PHP code that does the include?
Karlis Blumentals
Blumentals Software
www.blumentals.net
gLes
Posts: 33
Joined: Sat Aug 27, 2005 6:01 pm
Location: Budapest, Hungary
Contact:

Post by gLes »

Code: Select all

<?php

@include 'index.html';

?>
Without the @ symbol it is displayed in the code explorer.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Why is this @ important for you?

Sorry for my PHP illiteracy at this moment :P

I see no problems adding it I just did not know that there is such @
Karlis Blumentals
Blumentals Software
www.blumentals.net
gLes
Posts: 33
Joined: Sat Aug 27, 2005 6:01 pm
Location: Budapest, Hungary
Contact:

Post by gLes »

It suppresses warnings for the called function, I found it useful since I moved to PHP5 on my server, cause it likes to give me warnings more often than version 4, and I don't have access to the php.ini, and I still want to see the warnings but not everywhere :roll:
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

So it matters for you whether you do see or do not see the @ in the inspector?

It is not difficult to add, but it will slow down parsing of big PHP files for some 1 - 2%, so should we add it?
Karlis Blumentals
Blumentals Software
www.blumentals.net
gLes
Posts: 33
Joined: Sat Aug 27, 2005 6:01 pm
Location: Budapest, Hungary
Contact:

Post by gLes »

Well actually I don't use code explorer very often, I just thought you might want to add this feature if not for me then for other users, maybe we should start a poll ;)
Post Reply