strange error code
| From: | Dennis Gearon | Date: | Wed, 26 Jul 2000 19:25:04 +0000 |
| Subject: | strange error code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8383@lists.php.net to get a copy of this message | ||
Here is an amazing error 'code'!
-----
Parse error: parse error, expecting
T_PAAMAYIM_NEKUDOTAYIM' or '(''
in
/home/gearond/public_html/index.php on line 17
-----
with following phpinfo() output:
PHP Version 4.0.1pl2
System Linux webdev 2.2.16 #97 Fri Jun 16 19:45:30 PDT 2000 i686
unknown
Build Date Jul 19 2000
Configure Command './configure' '--with-apache=../apache_1.3.12'
'--with-mysql=/mysql' '--prefix=/www'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini)
Path /usr/local/lib
ZEND_DEBUG disabled
Thread Safety disabled
This program makes use of the Zend scripting language engine:
Zend Engine v1.0.1, Copyright (c) 1998-2000 Zend Technologies
-----
for following file:
-----
<?php
function val_checker($arg){
echo("val_checker called <br>");
if ($arg < 4) return 1;
else return 0;
}
class MyClass{
var $local_datum;
var $function_holder;
function fun(){
$this->local_datum=0;
}
}
$instance = new MyClass;
$instance->fun();
printf("%d", val_checker($instance->local_datum));
$global_fun=&val_checker;
$global_fun(4);
?>
________________________________________________________________
Dennis K. Gearon (Kegley)
Scientific Instrument Technician, School of EIT
Oregon Institute of Technology - One of USA's 100 Best College Buys
3201 Campus Drive
Klamath Falls, OR 97601
Voice 1-541-885-1563
FAX 1-541-885-1689
email gearond@oit.edu
________________________________________________________________
Happiness is when you want to go to your job in the morning and
when you want to go home in the evening.
________________________________________________________________