PHP will NOT display this on my dev machine: Warning: session_start()...
I am running into a strange problem and I hope someone might have an
idea why this is happening.
My installation of PHP will *NOT* display the warning message below on
my development machine where it should display it (sample code at the
bottom).
Warning: session_start() [function.session-start]: Cannot send session
cache limiter ....
After receiving a bug report from a customer I tested my code on a XAMPP
setup and, sure enough, it displayed the warning message.
But on my machine, I can't find a message in my php log, it is as if
this problem does not even exist (on my dev machine).
My dev setup is:
OS: ARCH 64bit (about a month out of date)
PHP Dev stuff:
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 SVN/1.6.6
PHP/5.3.1 with Suhosin-Patch
xdebug-2.0.5-2-x86_64
php.ini
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
html_errors = On
....
phpinfo() confirms that these settings are in effect
display_errors On On
error_reporting 32767 32767
So does anybody have any clue as to what could be causing this problem
of not getting a warning message?
Here is sample code:
<p>The warning should be below this line</p>
<?PHP session_start(); ?>
<p>The warning should be above this line</p>
Which should produce the message below between the lines:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent ( output started at <file_name> on
line 2 )
but on my machine all I get is this in html source of the output:
<p>The warning should be below this line</p>
<p>The warning should be above this line</p>
thx
--
John
Staat heißt das kälteste aller kalten Ungeheuer. Kalt lügt es auch; und
diese Lüge kriecht aus seinem Munde: 'Ich, der Staat, bin das Volk.'
[Friedrich Nietzsche]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP will NOT display this on my dev machine: Warning:
--00c09f8c22fa4e59f0047f573ec1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Do you have output buffering turned on?
On Thu, Feb 11, 2010 at 1:19 PM, John Black
<spam [at] network-technologies.org>wrote:
> I am running into a strange problem and I hope someone might have an
> idea why this is happening.
>
> My installation of PHP will *NOT* display the warning message below on my
> development machine where it should display it (sample code at the bottom=
).
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter ....
>
> After receiving a bug report from a customer I tested my code on a XAMPP
> setup and, sure enough, it displayed the warning message.
> But on my machine, I can't find a message in my php log, it is as if this
> problem does not even exist (on my dev machine).
>
> My dev setup is:
> OS: ARCH 64bit (about a month out of date)
> PHP Dev stuff:
> Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 SVN/1.6.6
> PHP/5.3.1 with Suhosin-Patch
> xdebug-2.0.5-2-x86_64
>
> php.ini
> error_reporting =3D E_ALL | E_STRICT
> display_errors =3D On
> display_startup_errors =3D On
> log_errors =3D On
> html_errors =3D On
> ....
>
> phpinfo() confirms that these settings are in effect
> display_errors On On
> error_reporting 32767 32767
>
> So does anybody have any clue as to what could be causing this problem of
> not getting a warning message?
>
> Here is sample code:
> <p>The warning should be below this line</p>
> <?PHP session_start(); ?>
> <p>The warning should be above this line</p>
>
> Which should produce the message below between the lines:
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent ( output started at <file_name> on
> line 2 )
>
> but on my machine all I get is this in html source of the output:
> <p>The warning should be below this line</p>
> <p>The warning should be above this line</p>
>
> thx
> --
> John
> Staat heißt das kälteste aller kalten Ungeheuer. Kalt lügt es auch=
; und
> diese Lüge kriecht aus seinem Munde: 'Ich, der Staat, bin das Volk.'
> [Friedrich Nietzsche]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--00c09f8c22fa4e59f0047f573ec1--
Re: PHP will NOT display this on my dev machine: Warning:session_start()...
--=-QwswubrSJvalUML4SMF/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Thu, 2010-02-11 at 19:19 +0100, John Black wrote:
> I am running into a strange problem and I hope someone might have an
> idea why this is happening.
>
> My installation of PHP will *NOT* display the warning message below on
> my development machine where it should display it (sample code at the
> bottom).
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter ....
>
> After receiving a bug report from a customer I tested my code on a XAMPP
> setup and, sure enough, it displayed the warning message.
> But on my machine, I can't find a message in my php log, it is as if
> this problem does not even exist (on my dev machine).
>
> My dev setup is:
> OS: ARCH 64bit (about a month out of date)
> PHP Dev stuff:
> Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 SVN/1.6.6
> PHP/5.3.1 with Suhosin-Patch
> xdebug-2.0.5-2-x86_64
>
> php.ini
> error_reporting =3D E_ALL | E_STRICT
> display_errors =3D On
> display_startup_errors =3D On
> log_errors =3D On
> html_errors =3D On
> ....
>
> phpinfo() confirms that these settings are in effect
> display_errors On On
> error_reporting 32767 32767
>
> So does anybody have any clue as to what could be causing this problem
> of not getting a warning message?
>
> Here is sample code:
> <p>The warning should be below this line</p>
> <?PHP session_start(); ?>
> <p>The warning should be above this line</p>
>
> Which should produce the message below between the lines:
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent ( output started at <file_name> on
> line 2 )
>
> but on my machine all I get is this in html source of the output:
> <p>The warning should be below this line</p>
> <p>The warning should be above this line</p>
>
> thx
> --
> John
> Staat hei=C3=9Ft das k=C3=A4lteste aller kalten Ungeheuer. Kalt l=C3=BCg=
t es auch; und
> diese L=C3=BCge kriecht aus seinem Munde: 'Ich, der Staat, bin das Volk.'
> [Friedrich Nietzsche]
>
>
Is your system setup with session autostart enabled? That would cause
PHP to ignore you manually starting them I believe, as they should have
already been started. I'm not 100% certain on this though.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-QwswubrSJvalUML4SMF/--
Re: PHP will NOT display this on my dev machine: Warning: session_start()...
Adam Richardson wrote:
> Do you have output buffering turned on?
THANK YOU!
That was it, for some reason ARCH has a "tweaked" php.ini in their main
repo, that sucks.
Thank you, I have been looking all over to fix this!
--
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php