[TYPO3-core] RFC: fix problems with uname (#3326)
Karsten Dambekalns
karsten at typo3.org
Wed May 31 23:07:47 CEST 2006
Hi.
On Monday 15 May 2006 17:52, Martin Kutschker wrote:
> > Create a unfied function for getting the FQDN of the host name and use it
> > in both occurences. This solution has no cure for a broken php_uname but
> > it doesn't produce PHP errors. Using $_SERVER['HTTP_HOST'] should avoid
> > the problem altogether when not in CLI-mode.
...
> I've attached a new version which adds an additional sanity check for the
> result of gethostbyname() which returns the input as output if no host
> could be found (see PHP docs).
I read the patch very carefully and am convinced this will work as expeceted.
Thus +1 from me.
Regards,
Karsten
--
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060531/b575eaf9/attachment.pgp
More information about the TYPO3-team-core
mailing list