|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2004-04-11 18:53 UTC] jkmail at tpg dot com dot au
  [2004-04-11 19:27 UTC] jkmail at tpg dot com dot au
  [2004-04-12 05:44 UTC] derick@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 23:00:01 2025 UTC | 
Description: ------------ When executing this code from STDIN (via CLI), an extra 'D' character appears in the output for the first time the function is executed. It behaves normally when its reading the code from a file. Could this be the 'D' character from the 'Ctrl-D' combination somehow appearing? Configure: './configure' '--prefix=/usr/local/php5' '--with-apxs2' '--disable-cgi' '--disable-ipv6' '--with-openssl' '--enable-bcmath' '--with-bzip2' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-imap' '--with-mysql=/usr/local/lib/mysql' '--enable-soap' '--with-xmlrpc' '--with-zlib-dir=/usr' Reproduce code: --------------- <?php function a() { $var = 4; print $var . "\n"; } a(); a(); ?> Expected result: ---------------- 4 4 Actual result: -------------- 4D 4