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
220e30e5
Commit
220e30e5
authored
Nov 17, 2009
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixing the IsolatedClassLoader to work with null ns
parent
50f727b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
IsolatedClassLoader.php
lib/Doctrine/Common/IsolatedClassLoader.php
+2
-6
No files found.
lib/Doctrine/Common/IsolatedClassLoader.php
View file @
220e30e5
...
...
@@ -45,7 +45,7 @@ class IsolatedClassLoader
*
* @param string $ns The namespace to use.
*/
public
function
__construct
(
$ns
)
public
function
__construct
(
$ns
=
null
)
{
$this
->
_namespace
=
$ns
;
}
...
...
@@ -96,11 +96,7 @@ class IsolatedClassLoader
*/
public
function
loadClass
(
$className
)
{
/*if (class_exists($className, false) || interface_exists($className, false)) {
return false;
}*/
if
(
strpos
(
$className
,
$this
->
_namespace
.
$this
->
_namespaceSeparator
)
!==
0
)
{
if
(
$this
->
_namespace
&&
strpos
(
$className
,
$this
->
_namespace
.
$this
->
_namespaceSeparator
)
!==
0
)
{
return
false
;
}
...
...
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