[TYPO3-core] RFC #9400: Integrate jb_status_code in the TYPO3 core

Andreas Wolf typo3ml at andreaswolf.info
Sun Sep 21 22:24:05 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi!

Dmitry Dulepov [typo3] schrieb:
> Why
> 
> header(constant('t3lib_div::HTTP_STATUS_301')));
> 
> and not
> 
> header(t3lib_div::HTTP_STATUS_301);
Ah, after getting my coffee consumption to normal coder level today (and
having had three looks at the patch) I think that there was a mistake in
Bennis original patch that Susanne has corrected. It should have been

constant('t3lib_div::HTTP_STATUS_' . $statusCode));

here, so the constant(...) makes sense to get a constant with a dynamic
name (sounds pretty strange, huh? ;)).

Cheers

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBSNatZQJFrtzcYmY6AQhUbw/7BO//L2xRTCN/kYRtA4qaBmaCeyxhNY+B
BpItS0DwMoQy1ihw828XIImPkMCfMUzXDh4H/AA+dpLkfrWy6W9Ar5p/H7rjvzI+
4QU6NB0fGLtoBoY1iBEP1lLkPhz7JZ6wVgFDz30RzWwrvInEJQy0x4ckVAstg6ku
pujxF5/Ejv14aV5CZkmeA0THsU0AK01nHxIumFNbtaTt3p7mphLx2Fy3CCA4sXZB
V0wVnqmr0UIgyTsRlZISvG0ah/Q1D62G812XaKZfxZKqrZfWWtflvcWOuVJ6igSo
MXW5w5z6np2zpqCJYF/DkbbyTWJtOqSv3wg4jkIRway0MQcdLw1htCjvxiGGKp7F
o0hGdfF7EbCiXHpfykeAVeGQOJBplVE/SrH5IIA9owhylC3oEL2zUlp3kswEnIy/
n21TU5GPL63x4rHIdQ3Xbk5kSTLEYbhcUI7ZSK0Vc/dmoKq++iyIBMaNwhm1rfI1
BWdpmuvM59SU96OzJQ6YW+7wrMHxuUc1NY0svSlEMy9RqL1rk3hA+GV58PlTR3vT
9brVakXJiUelx6Hhdjw/E212qR7EjgSPJeClS5lGBtYZ2+XswYeJ/z95Ni6rz74q
YBi5+iAR+MqEDK3Qm4i/6RVTORRbard4fphVeiZLapjbXJaNByRR7mDvmfDvGzzU
ESxQnQ9ud4o=
=ZZUT
-----END PGP SIGNATURE-----


More information about the TYPO3-team-core mailing list