# Bug, Warning that is possible a Parse Error

- Thread: https://externals.io/message/40180
- Original archive: https://news-web.php.net/php.internals/40180
- Started by Diogo Neves on 2008-08-31T01:33:21+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #40180 — Diogo Neves — 2008-08-31T01:33:21+00:00

URL: https://externals.io/message/40180#40180

I send the sample file attached, it's easy to understand what I'm saying...
The line in where is echo 'maria'/; should throw a Parse Error and not
a Warning, and @ least if it really is a Warning it should be catch
like any other Warning...

Plz, see the file, it's simple and shows better than my english ;)

-- 
Thanks for your attention,

Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt

---

## #40181 — Diogo Neves — 2008-08-31T04:49:59+00:00

URL: https://externals.io/message/40180#40181 · In reply to: #40180

Hi again,

Well, its behavior isn't like a Parse Error, becase the following code
return `NULL` and not false:

<?php
var_dump( eval( 'echo \'maria<br />\'\\;' ));
?>


> I send the sample file attached, it's easy to understand what I'm saying...
> The line in where is echo 'maria'/; should throw a Parse Error and not
> a Warning, and @ least if it really is a Warning it should be catch
> like any other Warning...
>
> Plz, see the file, it's simple and shows better than my english ;)
>
> --
> Thanks for your attention,
>
> Diogo Neves
> Web Developer @ SAPO.pt by PrimeIT.pt
>


-- 
Thanks for your attention,

Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt
