php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47069 Expecting T_VARIABLE in catch block
Submitted: 2009-01-11 15:25 UTC Modified: 2009-01-11 16:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ninzya at inbox dot lv Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.0alpha3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ninzya at inbox dot lv
New email:
PHP Version: OS:

 

 [2009-01-11 15:25 UTC] ninzya at inbox dot lv
Description:
------------
See details below. This used to work with PHP 5.3.0alpha2

Reproduce code:
---------------
index.php:

1: <?php
2: 
3: try {
4: 
5: } catch( Any::Path::To::Any::Class $e) {
6: 
7: }
8: 
9: ?>

Expected result:
----------------
No parse errors

Actual result:
--------------
Parse error: parse error, expecting `T_VARIABLE' in D:\WebServer\PHP-5.3a3\index.php on line 5

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-11 16:25 UTC] felipe@php.net
The same to bug #47068.

Thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 23:01:33 2025 UTC