Re: Why does `setcookie` send header before throwing `Error` exception?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Thanks for your reply JEFFRY KILLEN,

> Could it be sending the header and then choking
> because ‘path’ doesn’t have a valid value assignment?
Maybe, but it does not happen when using this invocation:

	setcookie('name', 'value', 1, new Foo());

which should be equivalent to:

	setcookie('name', 'value', array(
		'expires' => 1,
		'path' => new Foo()

The fatal error that they throw is not the issue I'm referring to, but the fact that one syntax sends the `Set-Cookie` response header but the other one does not.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux