# Make use of use

- Thread: https://externals.io/message/741
- Original archive: https://news-web.php.net/php.internals/741
- Started by Timm Friebe on 2003-04-06T14:02:17+00:00
- Messages: 4
- 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

---

## #741 — Timm Friebe — 2003-04-06T14:02:17+00:00

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

There currently is a keyword "use" in the engine, reserved for future
use:

1.1          (zeev     29-Oct-00):      |       `T_USE` [...]

With all the discussions about errors and ini settings, why not use use
to put PHP into different modes on a per-script-basis?

Some ideas that came to my head:
- use strict;
  => bail on undefined string- / array offsets / undeclared variables?

- use exceptions;
- use error::mode(exceptions, E_ALL);
- use error::mode(exceptions, E_WARNING);
  => Use exceptions instead of zend_error

- use sybase::magic_quotes;
  => Enable feature

- use ini::default_mime_type('text/xml');
  => Use it to set PHP_INI_ALL entries

- use oop::implicit_clone;
  => Activate BC features

- use lang::float_seperator(',');
  => Change EG(float_seperator)

- use oop('php', *);
  => Declare we want to use (import) the built-in classes

- use error::handler('my_error_handler');
  => Replace `set_error_handler()`

- use globals;
  => Auto-populate $_* variables

...

- Timm

---

## #742 — Derick Rethans — 2003-04-06T14:04:38+00:00

URL: https://externals.io/message/741#742 · In reply to: #741

> There currently is a keyword "use" in the engine, reserved for future
> use:
> 
> 1.1          (zeev     29-Oct-00):      |       `T_USE` [...]
> 
> With all the discussions about errors and ini settings, why not use use
> to put PHP into different modes on a per-script-basis?
> 
> Some ideas that came to my head:
> - use strict;
>   => bail on undefined string- / array offsets / undeclared variables?

<snip>

use java;

Derick

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

---

## #744 — Timm Friebe — 2003-04-06T14:16:40+00:00

URL: https://externals.io/message/741#744 · In reply to: #742

[...]
> <snip>
> 
> use java;

use alotofmemory;

:)

- Timm

---

## #746 — Sebastian Bergmann — 2003-04-06T14:30:53+00:00

URL: https://externals.io/message/741#746 · In reply to: #744

Timm Friebe wrote:
> > […]
> use alotofmemory;

  s/use/waste/

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
