[PHP-DEV] Problem with strings on Win32
Hi there, I just came across something very odd. The following code ?php $string = "test"; print "*".$string."*br"; var_dump($string); ? outputs ** string(6) "" . So, the variable's type and size are set correctly, but not its value. I'm using yesterday's CVS on Windows 2000 Professional. Sascha already checked this on his machine(s) and could NOT reproduce this. A confused Sebastian %-/ -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Problem with strings on Win32
Martin Jansen wrote: On my machine (Windows 2000 Professional German) everything works fine: | [d:\php\php4.0.4pl1]php | ?php | $string = "test"; | | print "*".$string."*br"; | var_dump($string); | ? | ^Z | X-Powered-By: PHP/4.0.4pl1 | Content-type: text/html | | *test*brstring(6) "test" | | [d:\php\php4.0.4pl1] On mine, too, it works fine. I was just stupid :-) -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Problem with strings on Win32
On Tue, 20 Feb 2001 20:40:04 +0100, Sebastian Bergmann wrote: The following code ?php $string = "test"; print "*".$string."*br"; var_dump($string); ? outputs ** string(6) "" On my machine (Windows 2000 Professional German) everything works fine: | [d:\php\php4.0.4pl1]php | ?php | $string = "test"; | | print "*".$string."*br"; | var_dump($string); | ? | ^Z | X-Powered-By: PHP/4.0.4pl1 | Content-type: text/html | | *test*brstring(6) "test" | | [d:\php\php4.0.4pl1] Using PHP 4.0.4pl1. Martin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]