Bug #18398 Updated: Sporadic link failure/invalid link error

From: Date: Thu, 18 Jul 2002 08:49:55 +0000
Subject: Bug #18398 Updated: Sporadic link failure/invalid link error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14508@lists.php.net to get a copy of this message
ID: 18398 Updated by: sniper@php.net Reported By: vmcore@mysun.com -Status: Open +Status: Feedback Bug Type: Sybase (dblib) related Operating System: Solaris 8 PHP Version: 4.1.2 New Comment: In PHP 4.2.0, the 'register_globals' setting default changed to be off. See http://www.php.net/release_4_2_0.php for more info. We are sorry about the inconvenience, but this change was a necessary part of our efforts to make PHP scripting more secure and portable. Previous Comments: ------------------------------------------------------------------------ [2002-07-17 21:17:09] vmcore@mysun.com 4.2.1 doesn't work with my variable setup for some reason. My variables are not passed from page to page. Right now I declare my variables as global in my constructor and then assign them to class values such as: global $var; $this->var = $var; this seems to work. Variables set outside the constructor such as var $somevar; don't seem to work unless i assign them static values. Maybe I'm doing something incorrectly but I cannot seem to get it to work the other way around. = Josh = ------------------------------------------------------------------------ [2002-07-17 17:48:57] sniper@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. You should also try using --with-sybase-ct instead.. ------------------------------------------------------------------------ [2002-07-17 17:42:57] vmcore@mysun.com Build string: ./configure --prefix=/local/opt --enable-static=mysql --enable-static=sybase --with-mysql=/local/opt/mysql --with-sybase=/local/run/tp/sybase/OpenClientServer/v11.1.1ebf8262 --with-apxs=/local/opt/apache/bin/apxs Version: 4.1.2 Errors: Warning: 0 is not a Sybase link index in /sbclocal/opt/icenine/www/dev/checksheets/include/checksheet_web.class.php on line 145 Warning: -1 is not a Sybase link index in /sbclocal/opt/icenine/www/dev/checksheets/include/checksheet_web.class.php on line 1809 Warning: 0 is not a Sybase result index in /sbclocal/opt/icenine/www/dev/checksheets/include/checksheet_web.class.php on line 1811 Connect Statement: function dbConnect () // Create basic connection { // create linkid $this->dbLinkid = sybase_connect("$this->dbHost", "$this->dbUser", "$this->dbPass"); // select database sybase_select_db($this->dbDbase, $this->dbLinkid); } // dbConnect It's quite sporadic. Sometimes the errors are different. I was using the same syntax with mysql, but I never had any issues. = Josh = ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18398&edit=1

« previous php.bugs (#14508) next »