Argument 7 not passed to function

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
toomanyaccounts
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 22 Dec 2016, 14:07

Re: Argument 7 not passed to function

Postby toomanyaccounts » 31 Dec 2016, 18:04

1) Because my code cleaner thinks there shouldn't be any type juggling there and I don't question the cleaner because it rewards me with a happy bell sound if I do what it demands.

2a) Because it looks to me like the error handler returning "false" forwards the error to the native error handler, which is how it ends up as last error and later the shutdown function fetches the last error (:60) and shoves it into the logger (:69), circumventing the @ completely.

2b) The '0' I only chose because I have no idea how the error stuff works internally and I thought PHP might be able to typecast it back to bool/false if necessary (just in case of other PHP implementations. My PHPs error stack - or whatever is "on the other side of the return" - just eats the integer and seems content). Returning 1 or true or "bacon" instead of 0 also appears to work fine. Or just "return;". Anything, just not "false".

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Argument 7 not passed to function

Postby fox » 31 Dec 2016, 19:17

i literally don't even re ^


Return to “Support”

Who is online

Users browsing this forum: No registered users and 6 guests