delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/07/17/17:40:46

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54BA2393BC05
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1595022003;
bh=m5vGUfEs5Yjv/W53pkZewgzb+EnHE9dK1Pa1//nD1rE=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=IPkOkBHuRPwG0p8uMurZbvIV5thGjFzjgfNNJvNkr+yrXd2iDRKQahT+VkrakESso
gpJ6xdjXAeZ39fqxWuepqq8acJ+sAWydnG3VS4362wt1We2+E8a2fV2v13Aws3Bg9+
RFp+edoprv7mQi6VNEgGxCYu47A+pSuxSJKLthxQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B27D53857004
Delivery-date: Fri, 17 Jul 2020 14:39:59 -0700
To: cygwin AT cygwin DOT com
Message-ID: <1869633229.76476.1595021996652@smtp4.opayq.com>
MIME-Version: 1.0
X-GetAbine-Processed: 1
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=E3/EUDoYyoNM/bap3rR3DWc3X60NzyatiHE3oJ8ssivBLe3ffJBoXpJhjy2WYfOch08sMN/KCRQ5n12UdRDw+SIxOb9GPQFspxIaxoe4EB03k32png9a9YfmdMV3iQbMta8YgJcuDCXK//PkAMF4sHBcSFyaKB2DV4cTuCe0/Z02Kxb10Is1eZohAvQTbs4yiynmFmimRgA7Ab/PvGEX0YGOX9DMnIoyeMB+mYtW3IgyfjuPJD2XykobGJhh6rbTSEIT4Pk4F1W95NjhDN7lj7lToI8lKvdtoDDplBqZVni6nFvgORwPr8gxvVxGV1o+EO6I8feVAcofV+Tl3Ks2IA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=+PTn804GqfFlbFpYX0gdbeoE0VWnPUkLLkYf0/sKQXQ=;
b=Shd7m5wQJ4innC/5ceHLppd11HTiGzIEBXEo5y+JtYvCXBSzh1XH0KOMRG6S0K+KsxIKpXF/uxYQCNlzsE4Ec4jY2E+ustH8w+4hnvE0mfePgfERvDGS6JMZHPgss4TYLgOAP9wYxiKb0uBif4y9JFPE0xQOkxmhxYphqxcj/TPRP7Wktjq895v0QLVKB8tQOMyRrphli3fD07Oi2pPLsgT7KtVikHNGnJ5QToTFAAc9SOpjg7jIi17CmUQCf79hvoaAJ54Dm9dXs4rrW81hdEr9+vg0y2FPidE0pb46dy0u7Pjm5BFXkY3OO588oOLx11duHPKO6SHGLaBqOSczBw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
Subject: Cygwin PHP (all available versions) has a hard 4MB memory limit
Thread-Topic: Cygwin PHP (all available versions) has a hard 4MB memory limit
Thread-Index: AdZcgrYh/FMUJuZiRxS+mKCQj2qUCQ==
Date: Fri, 17 Jul 2020 21:39:49 +0000
Accept-Language: en-GB, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:CCB567A828D05C799AE925C5B865D01626521707F3D2818F6575724DC93BE72A;
UpperCasedChecksum:9DACF7E888BD1DF0D1BC9106F4572EA5CA83A3CEE0B6183E627CCA92174DAE0B;
SizeAsReceived:6762; Count:42
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [Kkd9P7jW8irMVEOBqFBU+LzgMSJGfkt+]
x-ms-publictraffictype: Email
x-incomingheadercount: 42
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: 3f67636a-ed75-4592-e7c0-08d82a99ef04
x-ms-traffictypediagnostic: VI1EUR04HT221:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 0rZUppI3O2EuEQ2kU03C7ChYHNrig+pXq8ew8qhMizoPO6PvcZm5gYauppRXsIP8PpGG/w6acV9/N7hVx1T682zK60Un9k4JCc2FEnaRT9ReMbkUwdSlWPk96mmSkcOq9Jve7qEsftjEBLz+W4wjViuO6I5f0sn7r5kejCzI7xkK2O5G56mx6xZ7Uw/8NpVUXLiBfqvM3qO6fSIaDzqa1+uiR299isEMdxtdjAlb5Vyk9GrD3zwgWeR++g01IpsB
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:;
IPV:NLI; SFV:NSPM; H:AM7PR10MB3509.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
SFTY:; SFS:; DIR:OUT; SFP:1901;
x-ms-exchange-antispam-messagedata: SI8aQQdatwcM3tMH9bykfmDkK40AoQX8nUgRWTq+nyXvfrnUCDzJCagu32QIq6ksGgZHgR/U/BTuAvykAkBBti+2SJwxscKH/Df/1SxMAzQgvcLHM1jwDI2G+LX4qImauQenY9a1zUDfuJ+XPzUNSg==
x-ms-exchange-transport-forked: True
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-AuthSource: VI1EUR04FT058.eop-eur04.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 3f67636a-ed75-4592-e7c0-08d82a99ef04
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2020 21:39:50.0059 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR04HT221
X-Key-ID: ZndkLmsxenNzNnB4eXZtOUBvcGF5cS5jb20gZWx2ZW5zcGVsbG1ha2VyQGhvdG1haWwuY28udWsgMjAyMC0wNy0xNyAxNDozOTo1My42MjYgMWp3WTVCLTAwMDdaZy1HQg==
X-Content-flags: available compile email-adr fwd hello https limit link links
lowed lower message noticed php problem stranger whatev works
X-Spamfilter-host: opayq-outbound.junkemailfilter.com -
http://www.junkemailfilter.com
X-Key-ID: Y3lnd2luQGN5Z3dpbi5jb20ga20yejdrY2Ewb2dlQG9wYXlxLmNvbSAyMDIwLTA3LTE3IDE0OjM5OjU4Ljk5MyAxandZNUctMDAwMDhmLVQw
X-Domain-list: cygwin.com awsdns-17.co.uk amazon.com
X-Sender-Host-Address: 23.21.143.60
X-Sender-Host-Name: smtp4.opayq.com
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
SPF_PASS autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: km2z7kca0oge--- via Cygwin <cygwin AT cygwin DOT com>
Reply-To: km2z7kca0oge AT opayq DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
Note-from-DJ: This may be spam

Hi there,

Recently I've noticed that PHP seems have to hard 4MB memory limit, even when overridden in the settings. For whatever reason the bundled PHP versions with Cygwin have this problem.

The failing message is `Out of memory` which indicates PHP thinks the system has exhausted all RAM (the usual out of memory message is "Fatal error: Allowed memory size of XXX bytes exhausted" when you hit the cap).

If I compile a fresh PHP from source (for example 7.4.8) https://github.com/php/php-src/tree/php-7.4.8 it works absolutely fine.

I've reproduced this on another PC with a fresh install of Cygwin only installing the base PHP as the only extra package.

Example script:
```
<?php

echo ini_get('memory_limit'), "\n";

file_get_contents('http://mirror.cwcs.co.uk/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-dvd1.iso'); // A large file such as an ISO.
```

Output:
$ php test.php
128M
PHP Fatal error:  Out of memory (allocated 4194304) (tried to allocate 2097184 bytes) in /c/Users/JackBlower/tmp-safe/test.php on line 5

Any help would be great thanks.

Many Thanks,

Jack
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019