|
4 | 4 | *
|
5 | 5 | * PHP Version 5
|
6 | 6 | *
|
7 |
| - * Copyright (c) 2008-2009, Manuel Pichler <[email protected]>. |
| 7 | + * Copyright (c) 2008-2011, Manuel Pichler <[email protected]>. |
8 | 8 | * All rights reserved.
|
9 | 9 | *
|
10 | 10 | * Redistribution and use in source and binary forms, with or without
|
11 | 11 | * modification, are permitted provided that the following conditions
|
12 | 12 | * are met:
|
13 |
| -
|
14 | 13 | *
|
15 | 14 | * * Redistributions of source code must retain the above copyright
|
16 | 15 | * notice, this list of conditions and the following disclaimer.
|
|
40 | 39 | * @category QualityAssurance
|
41 | 40 | * @package PHP_Depend
|
42 | 41 | * @author Manuel Pichler <[email protected]>
|
43 |
| - * @copyright 2008-2009 Manuel Pichler. All rights reserved. |
| 42 | + * @copyright 2008-2011 Manuel Pichler. All rights reserved. |
44 | 43 | * @license http://www.opensource.org/licenses/bsd-license.php BSD License
|
45 | 44 | * @version SVN: $Id$
|
46 | 45 | * @link http://pdepend.org/
|
47 | 46 | */
|
48 | 47 |
|
49 | 48 | // PEAR/svn workaround
|
50 | 49 | if (strpos('/usr/bin/php', '@php_bin') === 0) {
|
51 |
| - set_include_path('.' . PATH_SEPARATOR . dirname(__FILE__)); |
| 50 | + set_include_path('.' . PATH_SEPARATOR . dirname(__FILE__) . '/../main/php'); |
| 51 | +} |
| 52 | + |
| 53 | +require_once 'PHP/Depend/Autoload.php'; |
| 54 | + |
| 55 | +// Allow as much memory as possible by default |
| 56 | +ini_set('memory_limit', -1); |
| 57 | + |
| 58 | +// Disable E_STRICT for all PHP versions < 5.3.x |
| 59 | +if (version_compare(phpversion(), '5.3.0')) { |
| 60 | + error_reporting(error_reporting() & ~E_STRICT); |
52 | 61 | }
|
53 | 62 |
|
54 |
| -require_once 'PHP/Depend/TextUI/Command.php'; |
| 63 | +$autoload = new PHP_Depend_Autoload(); |
| 64 | +$autoload->register(); |
55 | 65 |
|
56 | 66 | exit(PHP_Depend_TextUI_Command::main());
|
0 commit comments