Community
    • Login

    Bug: Function List not showing php functions with arrays in parameters

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Randall BilbyR
      Randall Bilby
      last edited by

      The Function List seems to ignore functions that have arrays as default parameters. Example:

      class Some_Class {
        function __construct() {
        }
        function some_function($a = array()) {
        }
        function another_function($b = null) {
        }
        }
      }
      
      

      I expect to see a class with three functions, however I see a class with two, the function with the the array in the parameters is absent. This is valid PHP code, so it should be showing three functions. The same results occur when the functions are not inside a class object.

      I am using NPP Version 6.9 on Windows 7 x64. Thanks!

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Randall Bilby
        last edited by

        Hello Randall-Bilby,

        I do have the some function show up in function list. See here.
        So, I assume your functionlist.xml is using different php parser, could this be?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Randall BilbyR
          Randall Bilby
          last edited by

          OK it appears that I wasn’t able to reproduce this on another computer! I will check funcitonlist.xml and get to the bottom of it. Thank you for your prompt reply!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors