Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4823
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: PHP 5.3.9 hex bug? |
| Date | 2012-02-15 18:48 +0100 |
| Organization | http://alvaro.es/ |
| Message-ID | <jhgr5c$4fm$1@dont-email.me> (permalink) |
| References | <jhgi0p$r76$1@speranza.aioe.org> |
El 15/02/2012 16:12, aaa escribió/wrote: > Why is this: > fseek($f, 0x0000+2, SEEK_SET); > giving same result as: > fseek($f, 4, SEEK_SET); > and not same result as: > fseek($f, 0000+2, SEEK_SET); > or > fseek($f, 2, SEEK_SET); > ? > What is wrong with the hex notation? It's really funny: var_dump(0x0 + 2, 0x0+ 2, 0x0+2, 0x0 +2); ... prints: int(2) int(2) int(4) int(4) No idea of what's going on but it only seems to affect hexadecimal zero so at least there's an obvious workaround. -- -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain -- Mi sitio sobre programación web: http://borrame.com -- Mi web de humor satinado: http://www.demogracia.com --
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PHP 5.3.9 hex bug? "aaa" <aaa@aaaaaaaaaaa.com> - 2012-02-15 16:12 +0100
Re: PHP 5.3.9 hex bug? tony@mountifield.org (Tony Mountifield) - 2012-02-15 16:36 +0000
Re: PHP 5.3.9 hex bug? Denis McMahon <denismfmcmahon@gmail.com> - 2012-02-15 16:48 +0000
Re: PHP 5.3.9 hex bug? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-02-15 18:48 +0100
Re: PHP 5.3.9 hex bug? "aaa" <aaa@aaaaaaaaaaa.com> - 2012-02-16 10:38 +0100
Re: PHP 5.3.9 hex bug? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-02-16 14:08 +0100
Re: PHP 5.3.9 hex bug? Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-02-16 12:37 +0100
Re: PHP 5.3.9 hex bug? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-02-15 20:00 +0100
csiph-web