From:             arizonaguy31 at aol dot com
Operating system: debian 3
PHP version:      4.3.4
PHP Bug Type:     Compile Failure
Bug description:  missing space in php_network.h

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


-- 
Edit bug report at http://bugs.php.net/?id=27030&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27030&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27030&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27030&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27030&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27030&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27030&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27030&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27030&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27030&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27030&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27030&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27030&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27030&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27030&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27030&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27030&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27030&r=float

Reply via email to