1 | <?php |
||
20 | class pdf_context { |
||
|
|||
21 | |||
22 | var $file; |
||
23 | var $buffer; |
||
24 | var $offset; |
||
25 | var $length; |
||
26 | |||
27 | var $stack; |
||
28 | |||
29 | // Constructor |
||
30 | |||
31 | function pdf_context($f) { |
||
35 | |||
36 | // Optionally move the file |
||
37 | // pointer to a new location |
||
38 | // and reset the buffered data |
||
39 | |||
40 | function reset($pos = null, $l = 100) { |
||
52 | |||
53 | // Make sure that there is at least one |
||
54 | // character beyond the current offset in |
||
55 | // the buffer to prevent the tokenizer |
||
56 | // from attempting to access data that does |
||
57 | // not exist |
||
58 | |||
59 | function ensure_content() { |
||
66 | |||
67 | // Forcefully read more data into the buffer |
||
68 | |||
69 | function increase_length($l=100) { |
||
81 | |||
82 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.