Bug #16905 Updated: mkdir crashes
| From: | jason at jase dot org | Date: | Tue, 07 May 2002 12:23:07 +0000 |
| Subject: | Bug #16905 Updated: mkdir crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7138@lists.php.net to get a copy of this message | ||
ID: 16905
Updated by: jason@jase.org
Reported By: mav@alkar.net
Status: Closed
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.5
PHP Version: 4.2.0
New Comment:
Hi,
I've submitted a pr to the FreeBSD php port maintainer, including a
patch.
The patch can be downloaded from:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/37825
Jason
Previous Comments:
------------------------------------------------------------------------
[2002-05-06 13:35:58] jimw@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/
fix was merged into 4.2 branch, so it should be included in 4.2.1. (we
were passing a pointer to a mode_t, which is a short on freebsd, and it
was being treated elsewhere as a pointer to a long. this is the fun
sort of bug that usually only shows up on non-debug builds.)
------------------------------------------------------------------------
[2002-05-06 11:37:39] kalowsky@php.net
Happens in 4.2.1RC1 as well. When compiled with --enable-debug, works
fine. When compiled with --disable-debug, it doesn't work
------------------------------------------------------------------------
[2002-05-02 06:04:48] jason@jase.org
Just to further confuse the issue. If I build the 4.3.0-DEV snaphost
(php4-200205020000) with --enable-debug then it behaves normally.
Jason
------------------------------------------------------------------------
[2002-05-02 04:54:10] jason@jase.org
I've just tried a 4.3.0 snapshot using the same test file as
mav@alkar.net posted above.
Operating system is FreeBSD 4.5.
-----------------------------------------------------
php4-200205020000# ./php ~/test.php
X-Powered-By: PHP/4.3.0-dev
Content-type: text/html
<br />
<b>Warning</b>: mkdir() failed (No such file or directory) in
<b>/disk1/home/jase/bigmailbox/test.php</b> on line <b>3</b><br />
Segmentation fault (core dumped)
------------------------------------------------------------------------
[2002-04-29 16:16:53] sniper@php.net
I can not reproduce this with PHP 4.3.0.
Please try latest CVS snapshot from http://snaps.php.net/
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16905
--
Edit this bug report at http://bugs.php.net/?id=16905&edit=1