what does this mean

what does this mean

am 17.10.2007 01:35:42 von grande news

I'm getting this returned from a PHP script. What does this mean?

Parse error: syntax error, unexpected ')', expecting
T_PAAMAYIM_NEKUDOTAYIM in /ho

Thanks
B

Re: what does this mean

am 17.10.2007 01:39:33 von Michael Fesser

..oO(Bint)

>I'm getting this returned from a PHP script. What does this mean?
>
>Parse error: syntax error, unexpected ')', expecting
>T_PAAMAYIM_NEKUDOTAYIM in /ho

The parser expects a '::' somewhere (yes, it's a strange name for that,
Google knows some details about it). Please post the code around the
line that was mentioned (and snipped by you) in the error message.

Micha

Re: what does this mean

am 17.10.2007 02:09:45 von grande news

Well, the error stems from an include file, I think. At least, if I
comment out the include file, then I just get a "missing function" error.
If I include the file, I get that error.

In trying to track down this error, I've commented out everthing except the
function definition, including the function's content. Here's what it looks
like, and I get the error. Is there something wrong with this?


function RLE_Uncompress(&$in, $insize, $bytemode) {
}

?>


"Michael Fesser" wrote in message
news:2oiah3t0rfv0u4bfqp7gustq1ojripmk8r@4ax.com...
> .oO(Bint)
>
>>I'm getting this returned from a PHP script. What does this mean?
>>
>>Parse error: syntax error, unexpected ')', expecting
>>T_PAAMAYIM_NEKUDOTAYIM in /ho
>
> The parser expects a '::' somewhere (yes, it's a strange name for that,
> Google knows some details about it). Please post the code around the
> line that was mentioned (and snipped by you) in the error message.
>
> Micha

Re: what does this mean

am 17.10.2007 03:15:15 von Jerry Stuckle

Bint wrote:
> "Michael Fesser" wrote in message
> news:2oiah3t0rfv0u4bfqp7gustq1ojripmk8r@4ax.com...
>> .oO(Bint)
>>
>>> I'm getting this returned from a PHP script. What does this mean?
>>>
>>> Parse error: syntax error, unexpected ')', expecting
>>> T_PAAMAYIM_NEKUDOTAYIM in /ho
>> The parser expects a '::' somewhere (yes, it's a strange name for that,
>> Google knows some details about it). Please post the code around the
>> line that was mentioned (and snipped by you) in the error message.
>>
>> Micha
>
>
>
> Well, the error stems from an include file, I think. At least, if I
> comment out the include file, then I just get a "missing function"
error.
> If I include the file, I get that error.
>
> In trying to track down this error, I've commented out everything
except the
> function definition, including the function's content. Here's what
it looks
> like, and I get the error. Is there something wrong with this?
>
> >
> function RLE_Uncompress(&$in, $insize, $bytemode) {
> }
>
> ?>
>
>

(top posting fixed)

Nothing wrong with the function AFAICS. But it could be almost anyplace
and just showing up there.

For instance, unmatched single or double quotes may show an error dozens
of lines later in the file.

P.S. Please don't top post. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: what does this mean

am 17.10.2007 04:24:38 von Steve

"Jerry Stuckle" wrote in message
news:l76dncC2w7Sy_4janZ2dnUVZ_hOdnZ2d@comcast.com...
> Bint wrote:
>> "Michael Fesser" wrote in message
>> news:2oiah3t0rfv0u4bfqp7gustq1ojripmk8r@4ax.com...
>>> .oO(Bint)
>>>
>>>> I'm getting this returned from a PHP script. What does this mean?
>>>>
>>>> Parse error: syntax error, unexpected ')', expecting
>>>> T_PAAMAYIM_NEKUDOTAYIM in /ho
>>> The parser expects a '::' somewhere (yes, it's a strange name for that,
>>> Google knows some details about it). Please post the code around the
>>> line that was mentioned (and snipped by you) in the error message.
>>>
>>> Micha
>>
>>
>> Well, the error stems from an include file, I think. At least, if I
> > comment out the include file, then I just get a "missing function"
> error.
> > If I include the file, I get that error.
> >
> > In trying to track down this error, I've commented out everything
> except the
> > function definition, including the function's content. Here's what
> it looks
> > like, and I get the error. Is there something wrong with this?
> >
> > > >
> > function RLE_Uncompress(&$in, $insize, $bytemode) {
> > }
> >
> > ?>
> >
> >
>
> (top posting fixed)
>
> Nothing wrong with the function AFAICS. But it could be almost anyplace
> and just showing up there.
>
> For instance, unmatched single or double quotes may show an error dozens
> of lines later in the file.

right. odd...today i got that same message. seems that i was typing to fast
and used a semi-colon instead of a comma between two function parameters.

it could be the version of php you're using...newer versions don't like the
depreciated use of referencing an argument...as in the &$in. the newer the
version, the more flack php gives about it.

can you reproduce it with *just* that line of code being processed?

Re: what does this mean

am 17.10.2007 10:41:13 von zeldorblat

On Oct 16, 10:24 pm, "Steve" wrote:
>
> it could be the version of php you're using...newer versions don't like the
> depreciated use of referencing an argument...as in the &$in. the newer the
> version, the more flack php gives about it.
>

A function taking an argument by reference is /not/ deprecated. Call-
time pass by reference is, however.

This is perfectly acceptable and has valid uses:

function RLE_Uncompress(&$in, $insize, $bytemode) {
//do something
}

Passing a parameter by reference when you call the function is
deprecated, however:

$x = RLE_Uncompress(&$foo, $bar, $baz);

Re: what does this mean

am 17.10.2007 10:52:36 von luiheidsgoeroe

On Wed, 17 Oct 2007 02:09:45 +0200, Bint wrote:

> Well, the error stems from an include file, I think. At least, if I
> comment out the include file, then I just get a "missing function" error.
> If I include the file, I get that error.
>
> In trying to track down this error, I've commented out everthing except
> the
> function definition, including the function's content. Here's what it
> looks
> like, and I get the error. Is there something wrong with this?
>
> >
> function RLE_Uncompress(&$in, $insize, $bytemode) {
> }
>
> ?>

As indicated earlier, on itself it's valid. There could be a problem with
the (placing of) the include itself. Care to give us some context in which
you try to include this file?

--
Rik Wasmus