# __LINE__ != __LINE__?

- Thread: https://externals.io/message/263
- Original archive: https://news-web.php.net/php.internals/263
- Started by Jan Schneider on 2003-03-25T12:56:46+00:00
- Messages: 5
- 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

---

## #263 — Jan Schneider — 2003-03-25T12:56:46+00:00

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

Current HEAD:

die("line: " . __LINE__) works as expected, but die(__LINE__) doesn't output
anything.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

---

## #264 — Edin Kadribasic — 2003-03-25T12:59:15+00:00

URL: https://externals.io/message/263#264 · In reply to: #263

> Current HEAD:
>
> die("line: " . __LINE__) works as expected, but die(__LINE__)
doesn't output
> anything.

That's because die(int) will set exit status and not print anything.
die(string) prints string and exits.

Edin

---

## #266 — Jan Schneider — 2003-03-25T14:11:12+00:00

URL: https://externals.io/message/263#266 · In reply to: #264

Quoting Edin Kadribasic <edink@proventum.net>:

> > […]
> doesn't output
> > […]
> 
> That's because die(int) will set exit status and not print anything.
> die(string) prints string and exits.

Hm, that should perhaps be added to the manual. According to the user notes
the same applies to exit.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

---

## #267 — Wez Furlong — 2003-03-25T14:12:52+00:00

URL: https://externals.io/message/263#267 · In reply to: #266

exit === die

--Wez.



> Quoting Edin Kadribasic <edink@proventum.net>:
>
> > […]
>
> Hm, that should perhaps be added to the manual. According to the user notes
> the same applies to exit.

---

## #268 — Derick Rethans — 2003-03-25T14:13:00+00:00

URL: https://externals.io/message/263#268 · In reply to: #266

> Quoting Edin Kadribasic <edink@proventum.net>:
> 
> > […]
> 
> Hm, that should perhaps be added to the manual. According to the user notes
> the same applies to exit.

File a documentation bug for this?

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
