Bug #18276 Updated: session_start with use_trans_sid adds unexpected quotes

From: Date: Thu, 11 Jul 2002 14:28:35 +0000
Subject: Bug #18276 Updated: session_start with use_trans_sid adds unexpected quotes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13855@lists.php.net to get a copy of this message
ID: 18276 Updated by: sander@php.net Reported By: kafka@antichri.st -Status: Open +Status: Bogus Bug Type: Session related Operating System: RedHat GNU/Linux 7.3 PHP Version: 4.1.2 New Comment: t('test') MUST be quoted because it's not a valid value (IIRC, only a-z, 0-9, - & _ are allowed. Reopen this report if it still doesn't work when you quote the values. Previous Comments: ------------------------------------------------------------------------ [2002-07-11 09:47:12] kafka@antichri.st This may be related to bug #14080. This bug is reproducible on 4.1.2 and 4.2.1, and can be seen using the following code: <? session_start(); print "<A HREF='http://foobar' onMouseIn=t('test')>test</A>"; ?> When cookies are not in use (eg. when first visiting the page in a new browser window), the following output results: <A HREF='http://foobar' onMouseIn="t("'test')>test</A> When cookies are used, the output is normal. If session_start, the output is also normal. Putting the link outside the <??> php code produces no change in the result. All magic_quote options are disabled in php.ini Configure line is as follows: './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-dbg=shared' '--with-dbg-profiler' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18276&edit=1

« previous php.bugs (#13855) next »