4.3.0RC2 : Comment introduced by // in main/php_content_type.c

From: Date: Fri, 06 Dec 2002 14:01:14 +0000
Subject: 4.3.0RC2 : Comment introduced by // in main/php_content_type.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-92167@lists.php.net to get a copy of this message
Hi, I successfully installed PHP 4.3.0RC2 on Tru64 v5.1, using native compiler. I want to report the only minor problem I found. In file main/php_content_type.c, one of the commend is introduced by // instead of being enclosed between /* and */. This C++ like comment is not supported by native C compiler on T64 5.1. Below is the trivial patch. May be, as it is the only location this // comment has been used, it is better to stay with old : /* */. Good luck and thanks for the nice PHP. Michel *** php_content_types.c Fri Dec 6 14:37:08 2002 --- php_content_types.c.original Fri Dec 6 14:51:58 2002 *************** *** 40,46 **** char *data = NULL; int length = 0; ! /* $HTTP_RAW_POST_DATA registration */ if(!strcmp(SG(request_info).request_method, "POST")) { if(NULL == SG(request_info).post_entry) { /* no post handler registered, so we just swallow the data */ --- 40,46 ---- char *data = NULL; int length = 0; ! // $HTTP_RAW_POST_DATA registration if(!strcmp(SG(request_info).request_method, "POST")) { if(NULL == SG(request_info).post_entry) { /* no post handler registered, so we just swallow the data */
    *************************************************************
    * Michel Jouvin                 Email : jouvin@lal.in2p3.fr *
    * LAL / CNRS                    Tel : +33 1 64468932        *
    * B.P. 34                       Fax : +33 1 69079404        *
    * 91898 Orsay Cedex                                         *
    * France                                                    *
    *************************************************************


« previous php.dev (#92167) next »