Re: upgrade issues

From: Date: Fri, 07 Feb 2003 00:24:56 +0000
Subject: Re: upgrade issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134695@lists.php.net to get a copy of this message
It looks like your code is using register globals which are turned off by default in PHP 4.2 and greater. You can either modify your code to use the PHP super globals or turn register globals back on (you can do this in php.ini or via an httpd.conf/.htaccess). Jason On Thu, 2003-02-06 at 08:12, Brian V Bonini wrote: > What's wrong with this snippet of code that would make it stop working > after upgrading from 4.0.6 to 4.3.0 > > > <?php > > if (!$id) { > include "pagetop.inc.php"; > } > if ($id == 1) { > $title = "xxx"; > include "pagetop.inc.php"; > ?> > <p>Stuff</p> > > <?php } ?> > > > > > './configure' '--with-apxs=/usr/local/www/bin/apxs' > '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' > '--with-system-regex' '--disable-debug' '--enable-track-vars' > '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' > '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' > '--with-zlib' > '--with-imap=/usr/local' '--with-mysql=/usr/local' > '--with-imap=/usr/local' '--prefix=/usr/local/www' > 'i386--freebsd4.4' > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#134695) next »