Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77124 invoked from network); 13 Jun 2008 04:01:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2008 04:01:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:59363] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/B9-15165-321F1584 for ; Fri, 13 Jun 2008 00:01:40 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 32AF0C12897 for ; Thu, 12 Jun 2008 21:01:43 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id EC31FC12893 for ; Thu, 12 Jun 2008 21:01:42 -0700 (MST) Message-ID: <4851F127.1030203@chiaraquartet.net> Date: Thu, 12 Jun 2008 23:01:43 -0500 User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: internals Mailing List X-Enigmail-Version: 0.95.0 Content-Type: multipart/mixed; boundary="------------060908070601040506030109" X-Virus-Scanned: ClamAV using ClamSMTP Subject: [PATCH] add pestrndup From: greg@chiaraquartet.net (Gregory Beaver) --------------060908070601040506030109 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I need this patch committed ASAP to PHP_5_3 zend_alloc.h, as the commit I just made for ext/phar depends on it (oops). Could someone help me out? Thanks :), Greg --------------060908070601040506030109 Content-Type: text/plain; name="pestrndup.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pestrndup.patch.txt" Index: zend_alloc.h =================================================================== RCS file: /repository/ZendEngine2/zend_alloc.h,v retrieving revision 1.63.2.2.2.12.2.4 diff -u -r1.63.2.2.2.12.2.4 zend_alloc.h --- zend_alloc.h 31 Dec 2007 07:17:04 -0000 1.63.2.2.2.12.2.4 +++ zend_alloc.h 13 Jun 2008 03:59:30 -0000 @@ -113,6 +113,7 @@ #define safe_perealloc(ptr, nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):safe_erealloc((ptr), (nmemb), (size), (offset))) #define perealloc_recoverable(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_recoverable((ptr), (size))) #define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s)) +#define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length))) #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) --------------060908070601040506030109--