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
9046569d
Commit
9046569d
authored
Sep 03, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doctrine::compile fixed
parent
c5e4f366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Doctrine.php
Doctrine.php
+14
-3
No files found.
Doctrine.php
View file @
9046569d
...
...
@@ -405,6 +405,7 @@ final class Doctrine {
"Iterator"
,
"Exception"
,
"Access"
,
"Null"
,
"Record"
,
"Record_Iterator"
,
"Collection"
,
...
...
@@ -444,21 +445,31 @@ final class Doctrine {
$refl
=
new
ReflectionClass
(
$class
);
$lines
=
file
(
$file
);
$start
=
$refl
->
getStartLine
()
-
1
;
$end
=
$refl
->
getEndLine
();
$ret
=
array_merge
(
$ret
,
array_slice
(
$lines
,
$refl
->
getStartLine
()
-
1
,
$refl
->
getEndLine
()
-
2
));
$start
,
(
$end
-
$start
)));
print
$refl
->
getEndLine
()
.
"<br \>"
;
}
$file
=
self
::
$path
.
DIRECTORY_SEPARATOR
.
'Doctrine.compiled.php'
;
$fp
=
fopen
(
self
::
$path
.
DIRECTORY_SEPARATOR
.
'Doctrine.compiled.php'
,
'w+'
);
$fp
=
fopen
(
$file
,
'w+'
);
fwrite
(
$fp
,
"<?php
"
.
implode
(
''
,
$ret
)
.
"
class InvalidKeyException extends Exception { }
class DQLException extends Exception { }
?>"
);
fclose
(
$fp
);
$stripped
=
php_strip_whitespace
(
$file
);
//print $stripped;
$fp
=
fopen
(
$file
,
'w+'
);
fwrite
(
$fp
,
$stripped
);
fclose
(
$fp
);
}
/**
* simple autoload function
...
...
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