Skip to content

Commit 27f2d95

Browse files
committed
Update local vs compiled files
1 parent bcedbaf commit 27f2d95

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
@@ -153,6 +153,8 @@ PHP Code Compiler version 1.3.0-dev
153153

154154
### Local versus compiled files
155155

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

158160
```
@@ -174,6 +176,16 @@ Well...not. What happens here then ?
174176

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

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

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

0 commit comments

Comments
 (0)