php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27030 missing space in php_network.h
Submitted: 2004-01-24 14:34 UTC Modified: 2004-01-24 15:18 UTC
From: arizonaguy31 at aol dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4 OS: debian 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arizonaguy31 at aol dot com
New email:
PHP Version: OS:

 

 [2004-01-24 14:34 UTC] arizonaguy31 at aol dot com
Description:
------------
I noticed that the file php_network.h has a missing new line at line 149.

I noticed this after compairing it with the same file from a previous download.

Below is the error i get when i tried to compile php.

I am a newbi and this is the first time i report a bug. I am also curious why does the php_network.h file have the same version and date ($Id: php_network.h,v 1.37.2.3 2003/06/27 16:42:51 sniper Exp) although it has been modified from the previous one.

Below are the lines from the file showing the error. This php tar was downloaded from php.net on 1.23.04.

PHPAPI php_stream *_php_stream_sock_open_unix(const char *path, int pathlen, const char *persistent_id,
		struct timeval *timeout STREAMS_DC TSRMLS_DC);

#define php_stream_sock_open_from_socket(socket, persistent)	_php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
#define php_stream_sock_open_host(host, port, socktype, timeout, persistent)	_php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_CC TSRMLS_CC)
#define php_stream_sock_open_unix(path, pathlen, persistent, timeval)	_php_stream_sock_open_unix((path), (pathlen), (persistent), (timeval) STREAMS_CC TSR#define php_stream_sock_open_from_socket_rel(socket, persistent)	_php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC?s?w)
#define php_stream_sock_op, timeout, persistent)	_php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_REL_CC TSRMLS_CC)
#define php_stream_sock_open_unix_rel(path, pathlen, persistent, timeval)	_php_stream_sock_open_unix((path), (pathlen), (persistent), (timeval) STREAMS_REL_CC TSRMLS_CC)

/* }}} */

Thanks,
Shahim






Reproduce code:
---------------
In file included from /my/src/php/php-4.3.4/ext/standard/fsock.h:38,
                 from /my/src/php/php-4.3.4/ext/standard/php_standard.h:44,
                 from /my/src/php/php-4.3.4/sapi/cli/php_cli.c:60:
/my/src/php/php-4.3.4/main/php_network.h:149: `#' operator should be followed by a macro argument name
/my/src/php/php-4.3.4/main/php_network.h:150: warning: missing white space after `#define php_stream_sock_op'
make: *** [sapi/cli/php_cli.lo] Error 1
d


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-24 15:18 UTC] arizonaguy31 at aol dot com
I just extracted the files again from the tarball and it looks like the file is ok now. It must have been a problem with extracting the file in the first place.

I checked the MD5 on the source after download and it was correct but is there a way to do another check after extraction?

Thanks
Sam
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 06:01:30 2024 UTC