S
S
sorry_i_noob2018-10-24 16:10:54
xdebug
sorry_i_noob, 2018-10-24 16:10:54

Why isset($_POST) returns true even though $_POST is not in the list of variables during debugging?

Hello. I am attaching a screenshot of debugging - there is no $_POST in the list of variables, and the script stopped at a breakpoint that goes inside the isset($_POST) check.
How do I make $_POST visible in the variable list (if it exists but somehow hidden). Or how can I make isset return false in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sorry_i_noob, 2018-10-24
@sorry_i_noob

Found the answer. It was necessary to disable the checkbox "Hide empty superglobals variables".

L
LeEnot, 2015-08-21
@maloyau

You are being told that you are trying to access a lazy-loaded collection outside of a Hibernate session. You can change the load type, you can add @JsonIgnore before @OneToMany

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question