Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    General Discussion
    2
    3
    2591
    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 Bilby
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Bilby
          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
          Copyright © 2014 NodeBB Forums | Contributors