Ehm... did you enable the <? ?> tags in the php.ini file?
If the code is being shown on the page it stands to reason that PHP did not
process the page at all.
Regards,
Jakob Kruse
"Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message
DC017B079D81D411998C009027B7112A015ED198@EXC-TYO-01">news:DC017B079D81D411998C009027B7112A015ED198@EXC-TYO-01...
> Hello everyone.
>
> in short: I had upgraded PHP from 4.0.1pl2 to 4.0.5.
> and this is what happened:
>
> The pages started breaking on
> '//'
> (YES, ON COMMENTS!)
>
> If there's no '//' then it works ok, but when it encounters any
> backslashes-commented line like here:
> --
> <?
> $special_folder = 'inc';
> $DoNotQuit =True; if( !$config_inc_def )
> include("$DOCUMENT_ROOT/inc/config.php");
>
> session_start();
> session_register('array_ra');
> session_register('PV');
> session_register('w3');
> session_unregister('view');
> file://unset($view);
> if (isset($w3))
> $time_spent = time()+1-$w3;
> $w3 = time();
>
> include ("$DOCUMENT_ROOT/inc/head.php");
> --
>
> IT CRASHES!
>
>
> The weird thing is that there a config file included before, and it HAS a
> WHOLE BUNCH of '//' but the page goes well until the first '//'
encountered.
>
> AND, THE CODE IS BEING SHOWN ON THE PAGE!
>
> to give you an idea:
>
> -- config.inc
>
> echo "What the ";
> // should print some
>
> ---
>
> -- test.php
>
> include('conf.inc');
> echo 'hell';
> ---
>
> this works fine
> prints 'What the hell'
>
> but if modify test.php:
>
> -- test.php
>
> include('conf.inc');
> // should work too..
> echo 'hell';
> ---
>
> it prints: 'What the // should work too..'
>
> ISN'T THAT WEIRD?
> WHAT IS IT?
>
> I cannot keep testing any further since we had out server down for the
whole
> 20 mins and had to place back from the tapes old PHP4.0.1pl2.
>
> CONCLUSION:
> IT WORKS ON 4.0.1pl2 AND CRASHES ON 4.0.5
>
> MY PRESUMPTIONS:
> A BUG
>
> PHP COMPILED AS:
> --with-mysql --with-pgsql --with-apxs --enable-track-vars
>
> WHAT WAS CHANGED:
> php 4.0.5 is now also compiled --with-pgsql while the previous
> installation wasn't
>
> PLATFORM:
> LINUX Red Hat 6.1
> Apache 1.3.9
>
>
> Please help us with this.
>
>
> Sincerely,
> Maxim Maletsky
> Web Developer
>
> Digital Media,
> Japan Inc Communications
> www.japaninc.com
> [EMAIL PROTECTED]
> TEL: 03-3499-2175 x 1271
> FAX: 03-3499-3109
--
PHP General 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]