-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfCoreAutoload::make() doesn't work #378
Comments
@thePanz This issue was caused by this change. 53a2b12#diff-eaebe010ea1054743688dffd43445400da8d71e461475fbd0910c23f4a4dbc63 |
Otherwise this pattern will fix it also:
This matches both array(...) and [...] declarations. |
Doesn’t the end part ( |
@vendethiel You are right. This code works for both declarations and using the new style in the replace.
|
@JohannesTyra @vendethiel thanks for the report! I was using the latest release of SF1, but did not get the error. |
@thePanz Which declaration you have in the latest relaese? 53a2b12#diff-eaebe010ea1054743688dffd43445400da8d71e461475fbd0910c23f4a4dbc63 ... The |
the latest release uses the short array syntax. How can I reproduce the error? |
Try to call I build up a custom task for this.
|
Hey Team,
the
sfCoreAutoload::make()
doesn't work.https://github.com/FriendsOfSymfony1/symfony1/blob/master/lib/autoload/sfCoreAutoload.class.php
The
preg_replace
needs the "old PHP array syntax":preg_replace('/protected \$classes = array *\(.*?\);/s',
In the code the new syntax
protected $classes = [***]
is used - without array.So the
preg_replace
fails.Using
fixes it.
Thx for support.
The text was updated successfully, but these errors were encountered: