Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33607 invoked from network); 7 Apr 2009 18:55:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2009 18:55:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:51411] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/77-28416-FA1ABD94 for ; Tue, 07 Apr 2009 14:55:44 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 560A1414400B; Tue, 7 Apr 2009 18:59:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z+T6gqFppSJv; Tue, 7 Apr 2009 20:59:58 +0200 (CEST) Received: from [192.168.0.182] (77-58-151-147.dclient.hispeed.ch [77.58.151.147]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 482E84144009; Tue, 7 Apr 2009 20:59:57 +0200 (CEST) Cc: Justin Martin , internals@lists.php.net Message-ID: <8C61D88F-DB51-41E1-B217-B4B790E381A9@pooteeweet.org> To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= In-Reply-To: <1238693616.7327.7.camel@goldfinger> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 7 Apr 2009 16:42:23 +0200 References: <6F.F0.47115.84534D94@pb1.pair.com> <1238693616.7327.7.camel@goldfinger> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] Update to Zend Highlighter From: mls@pooteeweet.org (Lukas Kahwe Smith) On 02.04.2009, at 19:33, Johannes Schl=FCter wrote: > Hi, > > On Wed, 2009-04-01 at 20:47 -0700, Justin Martin wrote: >> The update I'd like to propose is to the Zend Highlighter for PHP, >> specifically related to the highlight_file and highlight_string >> functions, as well as the php -s command. > > I don't see the need for a rush (or in other words: 5.3 can happily =20= > live > without it imo) and for the general consideration there's still my =20 > patch > from 2005 using a
    to have line numbers and adding id's so lines =20= > can > directly be accessed by an URL. > > http://schlueters.de/~johannes/php/zend_highlight_20050312_1.diff > > About ini settings: We should avoid adding them as much as possible, > making this an ini setting gives you trouble in case the admin plays > with them for some reason and you don't overwrite them in the =20 > script, on > the other hand it's the only way to make it work with "php -s" and the > apache sapi's application/x-httpd-php-source. > > So in summary: Let's think carefully about this before committing the > first idea which comes to mind. +1 .. lets get this sorted out in HEAD. Both the styling and the =20 optional support for line numbers and anchors. As for Chris Stockton's proposal for simply having an array parameter =20= with predefined keys, is this the first time we are starting to feel =20 the need for named parameters in a real world example of something to =20= be added to core? I know that several users have proposed such a =20 feature before, but imho before we start adding arrays as a poor mans =20= named parameter support, we might want to open that pandoras box =20 again. Again nothing for 5.3 .. HEAD is where its at. regards, Lukas Kahwe Smith mls@pooteeweet.org