Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51345 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4217 invoked from network); 24 Jan 2011 18:26:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2011 18:26:39 -0000 Authentication-Results: pb1.pair.com header.from=dmgx.michael@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dmgx.michael@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dmgx.michael@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:59377] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/85-06828-F54CD3D4 for ; Mon, 24 Jan 2011 13:26:39 -0500 Received: by eyf5 with SMTP id 5so1967087eyf.29 for ; Mon, 24 Jan 2011 10:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=kpAichXqABzBIdmwxzbPzNG4QlJSPVv5AQsYbwPFEoU=; b=lgObt8fNkmBiawDGwaJS2tafeqo9wUvN1ntwUh+QUhZKR3eBK4V61/yNRPjgYQAb/i w7nwaetRQjVd3MAnIdcp41ZHXYLjvvGeuzOXPuGIXsTHhgP4VlI3IFZ3F8g7k7BfXPor D1hnkRn9+qwsYdbs9T8lNLDj7/Y1BKXPpTJE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NyZDX6WEZp2daAx0i9dVP/i551VT260V5+L9ECBrxe70bgAGpL7j8OqPkY33i1olbr AnEdLE3OCRJOIPvj2xzytcBDUj8M2QFP6uU4jAHR/Y76SDTg6/k9Ijyye8ac1WIo6RV1 iOKdGGphPYhkVNeGtKFSWyk06nszznI4dYCGg= MIME-Version: 1.0 Received: by 10.216.199.81 with SMTP id w59mr2635147wen.100.1295893596524; Mon, 24 Jan 2011 10:26:36 -0800 (PST) Received: by 10.216.45.148 with HTTP; Mon, 24 Jan 2011 10:26:36 -0800 (PST) Date: Mon, 24 Jan 2011 13:26:36 -0500 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary=0016e6daa93a7ccf6b049a9bbd8a Subject: [RFC] Var_export tabbing From: dmgx.michael@gmail.com (Michael Morris) --0016e6daa93a7ccf6b049a9bbd8a Content-Type: text/plain; charset=ISO-8859-1 I've been trying to think of something that would be a good project to cut my teeth on for a first C project in forever and I'd rather work on something that might be useful. While cleaning tabbing on a var_export for a test class I think I have an idea. What I'm looking for is two things. One, is this the sort of thing that a beginner to C (not a beginning programmer mind you - I've been doing PHP scripting for, gosh, 7 years now) can do. If so I'll do this just for the experience of it because I need to learn how to prep patches and the remainder of the process for more major patches - such as the include style I RFC'ed earlier. It looks like if it's going to happen I'll have to learn how to do it. Anyway, var_export takes 2 arguments - the expression to be converted and whether to return or echo it. I'd like to add a third, whether to use spaces (default) or tabs for indentation For backwards compatibility null would mean uses spaces, and use 2 per indentation. If set to true a tab character would be used. Thoughts and input appreciated. --0016e6daa93a7ccf6b049a9bbd8a--