ID:               35539
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marcing at smlw dot pl
-Status:           Open
+Status:           Closed
-Bug Type:         Unknown/Other Function
+Bug Type:         Scripting Engine problem
 Operating System: Win XP
 PHP Version:      5CVS-2005-12-04 (snap)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-12-04 10:27:44] marcing at smlw dot pl

You r right judas, thanks

------------------------------------------------------------------------

[2005-12-04 02:22:49] judas dot iscariote at gmail dot com

the problem is the error message.

pass incorrect data type in:

Parameter #1 [ <required> $code ] 

OR 

Parameter #2 [ <required> $severity ]

and you'll see:

Fatal error: Wrong parameter count for exception...


maybe the error message should tell something different...

------------------------------------------------------------------------

[2005-12-04 01:32:04] [EMAIL PROTECTED]

./sapi/cli/php -r 'throw new ErrorException($msg, $code, $severity,
$file, $line);'

Fatal error: Uncaught exception 'ErrorException' in :0
Stack trace:
#0 {main}
  thrown in  on line 0

./sapi/cli/php -v
PHP 5.1.2-dev (cli) (built: Dec  4 2005 02:47:57)

Do you have any Zend extensions enabled like APC, IonCube, eAccelerator
etc. ?

------------------------------------------------------------------------

[2005-12-04 01:07:06] judas dot iscariote at gmail dot com

php  t.php
PHP Fatal error:  Wrong parameter count for exception([string
$exception [, long $code ]]) in t.php on line 2
X-Powered-By: PHP/5.1.2-dev

Linux amd64.

------------------------------------------------------------------------

[2005-12-04 00:54:35] [EMAIL PROTECTED]

I can't reproduce it.
Could you try on some different machine? (a *nix would be better)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35539

-- 
Edit this bug report at http://bugs.php.net/?id=35539&edit=1

Reply via email to