[Solved] same function working differently when called from two separate functions with same parameters [duplicate]

That’s probably because there are some dependencies that are resolved differently in each case, depending on who is calling this method. In some frameworks, you have something like a state, when request come then the server initializes some variables, for instance a session object for the particular user in which you can store some information. … Read more