Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69403 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13851 invoked from network); 28 Sep 2013 09:44:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2013 09:44:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=lior.k@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lior.k@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.219.42 cause and error) X-PHP-List-Original-Sender: lior.k@zend.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:33467] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/A2-27958-1E4A6425 for ; Sat, 28 Sep 2013 05:44:01 -0400 Received: by mail-oa0-f42.google.com with SMTP id g12so2765448oah.15 for ; Sat, 28 Sep 2013 02:43:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7Ge5psxu1F9vfr46JfIc8ahO0JOcekAcOZMHedh+z+A=; b=IZm9iroNGdo9vkygaYaNb+RgO3LGH+2S7tcozGS1YUlCgf1vEegasmV1qRvBDlqr0b BgCjBsMKal0rWoiI5VuHOoZojqgXzmywB0tefKBKHjEOril363/6U2ZRr/md5rzGzYtl FbbD9vwxcv4hG591J4MnuuQutitOJ7k4o5KEHRLIAxelT8GDwPVBE6J79w1Bbgr92fRQ FzK+ZOEZzxbhqlh+oNanM60RjIJ8ilGExHsASiSeVvMZxpPvZf9ieDpaoMsFX7OD7E0c XV2I+pk7dPkSWOj6TeYF05aFmwmOd4tRwLIDMS5xI2DIvpQH7FkZhVCgeBPKFpJS64ej fXHg== X-Gm-Message-State: ALoCoQnhEhbefS5jBvxVG7Gqe217Yqvfn89v7GVr58ZVlkFkyrOHZ3vrgdAhZnJMofEZYvXCQ8dxsvAFqda9cwuR4h/iYmw1ZcI7akxmrfqZ91dOCqDebYSHXVsFolRrjW2efeqR/CBt MIME-Version: 1.0 X-Received: by 10.182.50.130 with SMTP id c2mr9988769obo.35.1380361438261; Sat, 28 Sep 2013 02:43:58 -0700 (PDT) Received: by 10.60.23.195 with HTTP; Sat, 28 Sep 2013 02:43:58 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Sep 2013 11:43:58 +0200 Message-ID: To: Derick Rethans Cc: PHP internals list Content-Type: multipart/alternative; boundary=089e0158c6f0308a4504e76e7164 Subject: Re: [PHP-DEV] Gnu/Hurd support From: lior.k@zend.com (Lior Kaplan) --089e0158c6f0308a4504e76e7164 Content-Type: text/plain; charset=UTF-8 On Fri, Sep 27, 2013 at 3:02 PM, Derick Rethans wrote: > On Thu, 26 Sep 2013, Lior Kaplan wrote: > > > Hi, > > > > In Debian we build PHP for GNU/Hurd system, which need some minor fixes > > available here: > > > > > http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/patches/116-posixness_fix.patch > > 46 --- php5.orig/main/php.h > 47 +++ php5/main/php.h > 48 @@ -244,6 +244,10 @@ END_EXTERN_C() > 49 /* macros */ > 50 #define STR_PRINT(str) ((str)?(str):"") > 51 > 52 +#ifndef PATH_MAX > 53 +#define PATH_MAX 4096 > 54 +#endif > 55 + > 56 #ifndef MAXPATHLEN > 57 # ifdef PATH_MAX > 58 # define MAXPATHLEN PATH_MAX > > That looks wrong. You're unconditionally defining PATH_MAX, but there is > logic in line 57 that deals with this too... > That whole section is about defining MAXPATHLEN, not PATH_MAX. Kaplan --089e0158c6f0308a4504e76e7164--