php - Language anomaly. Curious jump -


i have section of code following structure.

if ( isset( $x) ){      error_log("a");      $a = f();      error_log("b"); } error_log("c"); 

the error log has entries

a c 

i no other entries in error log.

i have narrowed odd behavior down api call, phpcas::isauthenticated(), phpcas v1.3.2, inside f().

how possible code skip call error_log("b")? language construct allows this?

are sure log 'c' 1 ? can log file , line if error handler hasn't information.

if 3 logs ones, sure code ? don't have things before or after call of f() ?

you may have code deactivate logs or change handler, reactivate or reset old handler. can search strings "set_error_handler", "ini_set", "error_log"...

if "f()" uses classes instances, @ contructor , destructor of class , not in methods specificaly called.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -