PHP 4.0 Bug #5930 Updated: call to undefined function
| From: | Bug Database | Date: | Sun, 03 Sep 2000 20:33:40 +0000 |
| Subject: | PHP 4.0 Bug #5930 Updated: call to undefined function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31845@lists.php.net to get a copy of this message | ||
ID: 5930
Updated by: zeev
Reported By: porter@hispeed.com
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
Fixed in 4.0.2 (user report)
Previous Comments:
[2000-08-14 12:19:33] porter@hispeed.com
So does anyone have an idea of how to get around this problem.
---------------------------------------------------------------------------
[2000-08-04 22:52:34] porter@hispeed.com
I did it because I was getting an error with url_scanner.c when I tryied compiling on 8/3/00. today
I didn't get the error with the url_scanner, but I still am getting the Undefined function
error with sfio....
---------------------------------------------------------------------------
[2000-08-04 20:55:35] porter@hispeed.com
I did it because I was getting an error with url_scanner.c when I tryied compiling on 8/3/00. today
I didn't get the error with the url_scanner, but I still am getting the Undefined function
error with sfio....
---------------------------------------------------------------------------
[2000-08-04 10:33:46] stas@php.net
Why did you do --disable-url-fopen-wrapper?
---------------------------------------------------------------------------
[2000-08-03 23:05:44] porter@hispeed.com
Here is a truss of my httpd when a php request comes in.
fcntl(833, F_SETLKW, 0x000C4288) (sleeping...)
fcntl(833, F_SETLKW, 0x000C4288) = 0
accept(18, 0xEFFFF788, 0xEFFFF80C) (sleeping...)
accept(18, 0xEFFFF788, 0xEFFFF80C) = 3
fcntl(833, F_SETLKW, 0x000C42AC) = 0
sigaction(SIGUSR1, 0xEFFFF580, 0xEFFFF680) = 0
getsockname(3, 0xEFFFF7C8, 0xEFFFF80C) = 0
setsockopt(3, 6, 1, 0xEFFFF6FC, 4) = 0
read(3, " G E T / t e s t 4 . p".., 4096) = 333
sigaction(SIGUSR1, 0xEFFFD478, 0xEFFFD578) = 0
time() = 965336724
stat("/usr/local/www/htdocs/norwinddesigns/test4.php", 0x0010B178) = 0
umask(077) = 022
umask(022) = 077
chdir("/usr/local/www/htdocs/norwinddesigns") = 0
open("/usr/local/www/htdocs/norwinddesigns/test4.php", O_RDONLY) = 5
pathconf(".", _PC_PATH_MAX) = 1024
stat64("./", 0xEFFFE3D0) = 0
stat64("/usr/local/www/htdocs/norwinddesigns", 0xEFFFE338) = 0
ioctl(5, TCGETA, 0xEFFFEF6C) Err#25 ENOTTY
fstat64(5, 0xEFFFD3E8) = 0
llseek(5, 0, SEEK_CUR) = 0
read(5, " < ? p h p $ f p = f o".., 8192) = 49
read(5, 0x004309D8, 8192) = 0
ioctl(5, TCGETA, 0xEFFFD514) Err#25 ENOTTY
close(5) = 0
umask(022) = 022
poll(0xEFFFD560, 1, 0) = 0
write(3, " H T T P / 1 . 1 2 0 0".., 314) = 314
time() = 965336724
write(20, " 2 0 7 . 6 7 . 2 3 2 . 2".., 133) = 133
shutdown(3, 1) = 0
poll(0xEFFFD3D8, 1, 2000) = 1
read(3, 0xEFFFF500, 512) = 0
close(3) = 0
sigaction(SIGUSR1, 0xEFFFF580, 0xEFFFF680) = 0
fcntl(833, F_SETLKW, 0x000C4288) (sleeping...)±
I notice Err#25 ENOTTY
I got this out of ioctl
ENOTTY fildes is not associated with a STREAMS dev-
ice that accepts control functions.
---------------------------------------------------------------------------
[2000-08-03 22:54:11] porter@hispeed.com
Opps thats port 8080 for those urls.
---------------------------------------------------------------------------
[2000-08-03 22:53:47] porter@hispeed.com
I still get the Undefined function fopen().
Call to undefined function: fopen() in /usr/local/www/htdocs/norwinddesigns/test4.php on line 1
We are providing individual access_logs for 1000 customers ,because of a limitation in stdio for
solaris I am using sfio. With out it I can only have 332 log files and have a hope for php to work
at all.
www.norwinddesigss.com/test4.php
?php $fp=fopen("test.txt","w"); fclose($fp); ?>
www.norwinddesigsn.com/test.php (phpinfo script)
---------------------------------------------------------------------------
[2000-08-03 18:34:26] stas@php.net
Well, fcolse prototype seems broken indeed, fixed that. Now, how could you get fopen undefined,
escapes me.. Could you try a clean CVS build and verify it happens there?
---------------------------------------------------------------------------
[2000-08-03 18:28:20] porter@hispeed.com
Yes the second example should read this.
#if MISSING_FCLOSE_DECL
extern int fclose(FILE *);
#endif
---------------------------------------------------------------------------
[2000-08-03 11:19:01] stas@php.net
Am I senile or your two examples are the same? What to what you propose to change?
---------------------------------------------------------------------------
[2000-08-02 21:43:18] porter@hispeed.com
I have compiled php4 with the sfio library. Everything compiled fine, except I did get an error for
for the number of params in file.c
#if MISSING_FCLOSE_DECL
extern int fclose();
#endif
I changed this to
#if MISSING_FCLOSE_DECL
extern int fclose();
#endif
then everything compiled fine.
when I try and run the following test script.
<?php $fp=fopen("test.txt","w"); fclose($fp); ?>
I get the following.
Fatal error: Call to undefined function: fopen() in /usr/local/www/htdocs/norwinddesigns/test3.php
on line 2
http://www.norwinddesigns.com:8080/test.php
contains my phpinfo output.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5930