PHP will NOT display this on my dev machine: Warning: session_start()...
PHP will NOT display this on my dev machine: Warning: session_start()...
am 11.02.2010 19:19:37 von Skylinux
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:
The warning should be below this line
The warning should be above this line
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 on
line 2 )
but on my machine all I get is this in html source of the output:
The warning should be below this line
The warning should be above this line
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:session_start()...
am 11.02.2010 19:22:05 von Ashley Sheridan
--=-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.
>=20
> My installation of PHP will *NOT* display the warning message below on=20
> my development machine where it should display it (sample code at the=20
> bottom).
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter ....
>=20
> 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=20
> this problem does not even exist (on my dev machine).
>=20
> 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
>=20
> 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
> ....
>=20
> phpinfo() confirms that these settings are in effect
> display_errors On On
> error_reporting 32767 32767
>=20
> So does anybody have any clue as to what could be causing this problem=20
> of not getting a warning message?
>=20
> Here is sample code:
>
The warning should be below this line
>
> The warning should be above this line
>=20
> 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 on
> line 2 )
>=20
> but on my machine all I get is this in html source of the output:
> The warning should be below this line
> The warning should be above this line
>=20
> thx
> --=20
> John
> Staat heiÃt das kälteste aller kalten Ungeheuer. Kalt lüg=
t es auch; und
> diese Lüge kriecht aus seinem Munde: 'Ich, der Staat, bin das Volk.'
> [Friedrich Nietzsche]
>=20
>=20
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:
am 11.02.2010 19:23:10 von Adam Richardson
--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
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:
> The warning should be below this line
>
> The warning should be above this line
>
> 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 on
> line 2 )
>
> but on my machine all I get is this in html source of the output:
> The warning should be below this line
> The warning should be above this line
>
> 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
>
>
--=20
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--00c09f8c22fa4e59f0047f573ec1--
Re: PHP will NOT display this on my dev machine: Warning: session_start()...
am 11.02.2010 22:08:58 von Skylinux
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