ID: 13737
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: *General Issues
Operating System: Solaris 2.6
PHP Version: 4.0.5
New Comment:

I have solved it by making the changes recomended in bug id 9040.

Locate the $PHP_INSTALL_PATH/sapi/cgi/cgi_main.c and make the following changes:

*** sapi/cgi/cgi_main.c.origSun Dec  3 02:09:13 2000
--- sapi/cgi/cgi_main.cWed Jan 24 16:39:34 2001
            ***************
            *** 719,725 ****
              return FAILURE;
              }
              file_handle.filename = argv0;
            ! } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
              /* #!php support */
              c = fgetc(file_handle.handle.fp);
              if (c == '#') {
            --- 719,726 ----
              return FAILURE;
              }
              file_handle.filename = argv0;
            ! }
            ! if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
              /* #!php support */
              c = fgetc(file_handle.handle.fp);
              if (c == '#') {

Previous Comments:
------------------------------------------------------------------------

[2001-10-18 21:27:41] [EMAIL PROTECTED]

Duplicate of #9041

------------------------------------------------------------------------

[2001-10-18 10:39:38] [EMAIL PROTECTED]

If I run the following example:

#!/usr/local/bin/php
<?
        print "<br>Hello Word";
?>

I got the following result page:

#!/usr/local/bin/php
Hello World 

The configure options are:

./configure --with-config-file-path=/usr/local/lib --disable-debug --enable-ftp 
--with-informix=$INFORMIXDIR  --enable-t
rans-sid  --with-pgsql=/usr/local/pgsql --with-mysql


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13737&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to