|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 09:01 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
This bug looks similar to #1931, but... I'm running RedHat V6.0 on an AlphaServer DS10. Packages: Apache 1.3.9, MySQL 3.22.27 and PHP 3.0.12 I have a similar configuration on a ProLiant 1850R which works fine. 1) Apache+MySQL+PHP module -- fopen on a URL fails with "Invalid URL". 2) I rebuild PHP as a standalone program and uncommented some of debug code in url.c and found that url_parse() was failing after the second extended regexp. 3) Then rebuilt PHP as a standalong program using --with-system-regexp and then the code worked. 4) HOWEVER, when I rebuilt PHP3 as an apache module --with-system-regexp, the code still fails, but with this in the error log: FATAL: emalloc(): Unable to allocate 4294967293 bytes I can't get apache to leave a core file. If httpd is run from gdb, it simply dies with "Program exited with code 01." and bt says "No stack." -marc ------------------------------- The PHP3 code is the same one found in the manual: <? $fp = fopen("http://www.ispworks.com/", "r"); if (!$fp) { die("Can't open URL"); } while ($buffer = fgets($fp, 4096)) { echo $buffer; } fclose($fp); ?>