ID: 33733 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Closed Bug Type: CGI related -Operating System: linux +Operating System: * PHP Version: 5CVS-2005-07-17 (dev) Assigned To: helly New Comment:
thanks for the patch Previous Comments: ------------------------------------------------------------------------ [2005-07-19 15:46:29] [EMAIL PROTECTED] Marcus, you're the author of CLI completion, plz take a look at the patch. ------------------------------------------------------------------------ [2005-07-19 15:36:05] [EMAIL PROTECTED] Well, after some debugging I've found the problem. it was much simpler that I though. The problem was that strcpy() was copying 1 more char than the memory allocated, corrupting it. Patch: http://mega.ist.utl.pt/~ncpl/php_cli_interactive.txt ------------------------------------------------------------------------ [2005-07-19 14:26:17] [EMAIL PROTECTED] Now the program receives a SIGABRT and backtrace shows readline. In fact it seems I cannot reproduce the problem if I execute the script from a file, just when I run PHP in interactive mode (and when I use the auto-completition feature). I'll try to debug this stupid thing. ------------------------------------------------------------------------ [2005-07-19 13:26:19] [EMAIL PROTECTED] config.nice: './configure' \ '--disable-cgi' \ '--enable-pcntl' \ '--with-ftp' \ '--with-tidy' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-readline' \ '--with-bz2' \ '--with-zlib' \ '--with-openssl' \ '--with-pspell' \ '--with-zend-vm=GOTO' ------------------------------------------------------------------------ [2005-07-18 13:02:30] [EMAIL PROTECTED] I don't know what kind of info you want... Well, here it is the script used (which is above): <? $pspell_link = pspell_new('en'); pspell_config_mode($pspell_link, PSPELL_FAST); ?> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33733 -- Edit this bug report at http://bugs.php.net/?id=33733&edit=1