|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-24 15:18 UTC] arizonaguy31 at aol dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 03:00:01 2025 UTC |
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