# Patch to use expression with "new" keyword

- Thread: https://externals.io/message/60214
- Original archive: https://news-web.php.net/php.internals/60214
- Started by frederic.hardy@mageekbox.net on 2012-04-19T09:31:33+00:00
- Messages: 1
- 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

---

## #60214 — frederic.hardy@mageekbox.net — 2012-04-19T09:31:33+00:00

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

Hi everyone !

Just done a pull request (https://github.com/php/php-src/pull/62) on php/php-src to allow the use of an expression with "new" keyword.

The patch allow the user to do :

<?php

class Foo {}

$oo = 'oo';

$foo = new {'f' . $oo};

?>

Moreover, seems to me that it's not possible to subscribe to git-pulls@lists.php.net from http://www.php.net/mailing-lists.php.

best regards,
Fred 
========================================================================
Frédéric Hardy : Directeur technique et fonctionnel agile
                     CV : http://blog.mageekbox.net/public/cv.frederic.hardy.pdf
                  Blog : http://blog.mageekbox.net
              Twitter : http://twitter.com/mageekguy
========================================================================
