Re: [PHP4BETA] parsing error

From: Date: Wed, 12 Apr 2000 19:32:52 +0000
Subject: Re: [PHP4BETA] parsing error
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13470@lists.php.net to get a copy of this message
Actually this would probably be more of a problem with locating files that are not relative to the path of PHP. Especially if you are using Apache and don't have PHP dumped into your apache dir. I recommend trying typing in the full path to the include file and try it that way. That should solve your problem.. Judd Pickell CCBill Programmer ----- Original Message ----- From: <php@home.uh.nu> To: <php4beta@lists.php.net> Cc: <waltb@rocketcash.com> Sent: Wednesday, April 12, 2000 11:45 AM Subject: [PHP4BETA] parsing error > Howdy folks, > I have an annoying bug that makes it hard to debug code. If I have a class > that lives in a file that I include or require, and it has an error, I don't > get syntax errors for that file properly. I just get an error > "Fatal error: Failed opening required '/usr/www/web/htdocs/php_classes/rcClass_test.php' (include_path='') in /usr/www/web/htdocs/test/test.php on line 3" > This makes it very difficult to track down problems in classes, which I use a lot of. > I would expect to see a syntax error on the specified line in the file that contains > my class file. Below is a reproducable example. > > So for example, > have test.php which is > <? > require($DOCUMENT_ROOT."/php_classes/rcClass_test.php"); > $test = new rc_test; > > $test->testing("help"); > ?> > <html> > <? echo "testing\n"; ?> > </html> > > > My class file rcClass_test.php > <? > class rc_test > { > > function rc_test() > { > > } > > function testing($value) > { > file://syntax error here no trailing ) > if (strlen($value) > { > return true; > } > else return false; > } > } > ?> > > > Walt > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > >

« previous php.version4 (#13470) next »