#11502 [Com]: wrong argument count to fopen does not report error
| From: | chat-icq1305 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:06:56 +0000 |
| Subject: | #11502 [Com]: wrong argument count to fopen does not report error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62970@lists.php.net to get a copy of this message | ||
ID: 11502
Comment by: chat-icq1305 at hotmail dot com
Reported By: tony_leake at hotmail dot com
Status: Bogus
Bug Type: Filesystem function related
Operating System: linux 2.2.18 kernel
PHP Version: 4.0.4pl1
New Comment:
<a href=http://wlittleorgyshowpage.da.ru>icq
chat</a>
Previous Comments:
------------------------------------------------------------------------
[2001-06-15 10:17:13] sniper@php.net
Works for me just fine.
(gives a warning)
Check your error_reporting setting.
------------------------------------------------------------------------
[2001-06-15 09:56:23] tony_leake at hotmail dot com
This is the part of a script where I noticed the description
$fp = fopen("excel4.csv","w");
fputs($out_file);
fclose($fp);
I did not have a file pointer argument to fputs and no error was
reported. The file was created but was empty.
Below is configure info from phpinfo()
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs'
'--enable-trans-sid' '--enable-track-vars' '--disable-debug'
'--with-ming' '--enable-calendar' '--disable-ftp'
'--with-mysql=/usr/local/mysql' '--with-mhash' '--enable-sysvshm'
'--enable-sysvsem' '--with-imap=/usr/src/imap-2000/' '--with-gd'
'--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/X11R6/'
'--with-mcrypt'
'--with-swf=/usr/src/libswf-0.99' '--with-snmp' '--with-ucd-snmp-hack'
'--with-zlib' '--with-bz2' '--with-ldap'
We don't have a php.ini file. the OS is linux with a 2.2.18 kernel. It
is not any specific distribution, the company I work of rhas their own.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11502&edit=1