Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
52763253
Commit
52763253
authored
Dec 05, 2013
by
Julio Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
realpath return false when using the script in a phar file.
parent
8b28a9a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ImportCommand.php
lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php
+2
-4
No files found.
lib/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php
View file @
52763253
...
...
@@ -65,13 +65,11 @@ EOT
if
((
$fileNames
=
$input
->
getArgument
(
'file'
))
!==
null
)
{
foreach
((
array
)
$fileNames
as
$fileName
)
{
$fileName
=
realpath
(
$fileName
);
if
(
!
file_exists
(
$fileName
))
{
if
(
!
file_exists
(
$fileName
))
{
throw
new
\InvalidArgumentException
(
sprintf
(
"SQL file '<info>%s</info>' does not exist."
,
$fileName
)
);
}
else
if
(
!
is_readable
(
$fileName
))
{
}
else
if
(
!
is_readable
(
$fileName
))
{
throw
new
\InvalidArgumentException
(
sprintf
(
"SQL file '<info>%s</info>' does not have read permissions."
,
$fileName
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment