Re: [PATCH] reserved words allowed as function/method names

From: Date: Wed, 03 Oct 2007 03:15:40 +0000
Subject: Re: [PATCH] reserved words allowed as function/method names
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32580@lists.php.net to get a copy of this message
Gregory Beaver wrote: > =================================================================== > RCS file: /repository/php-src/run-tests.php,v > retrieving revision 1.226.2.37.2.35 > diff -u -r1.226.2.37.2.35 run-tests.php > --- run-tests.php 14 Sep 2007 15:28:03 -0000 1.226.2.37.2.35 > +++ run-tests.php 3 Oct 2007 02:40:57 -0000 > @@ -1328,12 +1328,15 @@ > $raw_lines = explode("\n", $post); > > $request = ''; > + $started = false; > foreach ($raw_lines as $line) { > if (empty($env['CONTENT_TYPE']) && > preg_match('/^Content-Type:(.*)/i', $line, $res)) { > $env['CONTENT_TYPE'] = trim(str_replace("\r", '', $res[1])); > continue; > } > - $request .= $line . "\n"; > + if ($started) $request .= "\n"; > + $started = true; > + $request .= $line; > } > > $env['CONTENT_LENGTH'] = strlen($request); ignore this part, sorry. Greg

« previous php.internals (#32580) next »