Hello, I've talked to a few people on the team about this issue, on and off.
It seems that every time I have tried compiling php since about 4.0.7, the resulting cli binary does not behave properly when used with -a. This problem has persisted with every version of php since then. I have only tried this on OS X. However, It seems that the cli version Apple distributes with each subsequent release of OS X always works. Using the version that they bundle, I am able to do something like: ~> php -a Interactive mode enabled <? print 2+2 . "\n"; 4 print "hello there. this works.\n"; duh, of course it works. exit(); ?> ~> ... but instead what happens with mine is more like: ~> php -a Interactive mode enabled <? print "bleargh.\n"; (nothing shows up) print "hello?" ^d (I hit control d here) print "hello?" ~> In other words, in this specific example, what happened was the first line I input got ignored. The second one didn't have a tag preceeding it so it was echoed instead. Had I put a tag in front it would have printed properly. Below please find the script I use when building php. It gives all the options and paths I use -- the first group is copied right from the apple version, to try and keep paths the same. The second portion contains the extra libs I need to link to and features I need to build in. However, trying just to compile it "just like apple's" config string, still fails. So I don't think that has too much to do with it. Thanks for your time. Thom Brooks, thom on EFNet #php * * * ** * * * * ** my 'configinfo' script # I dump my configure command into this script, make it +x and run it in the # php dir, ./configinfo ./configure \ '--prefix=/usr' \ '--mandir=/usr/share/man' \ '--infodir=/usr/share/info' \ '--with-apxs' \ '--with-ldap=/usr' \ '--with-kerberos=/usr' \ '--enable-cli' \ '--with-zlib-dir=/usr' \ '--enable-trans-sid' \ '--with-xml' \ '--enable-exif' \ '--enable-ftp' \ '--enable-mbstring' \ '--enable-dbx' \ '--enable-sockets' \ '--with-iodbc=/usr' \ '--with-curl=/usr' \ '--with-config-file-path=/etc' \ \ '--with-wddx' \ '--with-mysql=/usr/local/mysql' \ '--with-libjpeg' \ '--with-libtiff' \ '--with-libpng' \ '--with-dom' \ '--with-pdflib' -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php