Skip to content

Commit 443c167

Browse files
authored
Update local vs compiled files
1 parent e273e81 commit 443c167

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ PHP Code Compiler version 1.3.0-dev
152152

153153
### Local versus compiled files
154154

155+
#### Trap 1: file missing in compiled phar but present in local working dir
156+
155157
Let's consider the following tree (all files required by the app)
156158

157159
```
@@ -173,6 +175,16 @@ Well...not. What happens here then ?
173175

174176
If the `bin/acme` compiled archive stays in its place,the `lib/Ufo.php` can still be found from its point of view.
175177

178+
#### Trap 2: different files with the same relative path
179+
180+
Eg:
181+
182+
```php
183+
require "vendor/autoload.php"
184+
```
185+
186+
TODO: explain, give workaround
187+
176188
### Size too big
177189

178190
Many projects include some dev libraries, for unit test, local data seeding or code inspection.

0 commit comments

Comments
 (0)