Git Product home page Git Product logo

php_ole's People

Contributors

fabinou59 avatar luelista avatar thoroc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

php_ole's Issues

PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE

PHP file
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_biffwriter.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_format.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_formula_jmb.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_olewriter.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_workbook.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_workbookbig.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_worksheet.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'functions.writeexcel_utility.inc.php';

Executing
$fname = tempnam(sys_get_temp_dir(), "bigfile.xls");
$workbook = new writeexcel_workbookbig($fname);
$worksheet = $workbook->addworksheet();
$workbook->close();
unlink($fname);

Get error
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: stdClass::$_BIG_BLOCK_SIZE in [path here]/class.ole_pps_root.php on line 56
PHP Warning: Undefined property: stdClass::$_SMALL_BLOCK_SIZE in [path here]/class.ole_pps_root.php on line 58
PHP Warning: Undefined variable $sRes in [path here]/class.ole_pps.php on line 172
PHP Warning: Undefined property: ole_pps_root::$_PPS_FILE in [path here]/class.ole_pps.php on line 110

Use of undefined constant - assumed

In src/functions.ole.php:

define(PpsType_Root, 5);
define(PpsType_Dir, 1);
define(PpsType_File, 2);
define(DataSizeSmall, 0x1000);
define(LongIntSize, 4);
define(PpsSize, 0x80);

Should be replaced with (quoted constants):

define('PpsType_Root', 5);
define('PpsType_Dir', 1);
define('PpsType_File', 2);
define('DataSizeSmall', 0x1000);
define('LongIntSize', 4);
define('PpsSize', 0x80);

to avoid the warnings:

PHP Notice:  Use of undefined constant PpsType_Root - assumed 'PpsType_Root' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 3
PHP Notice:  Use of undefined constant PpsType_Dir - assumed 'PpsType_Dir' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 4
PHP Notice:  Use of undefined constant PpsType_File - assumed 'PpsType_File' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 5
PHP Notice:  Use of undefined constant DataSizeSmall - assumed 'DataSizeSmall' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 6
PHP Notice:  Use of undefined constant LongIntSize - assumed 'LongIntSize' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 7
PHP Notice:  Use of undefined constant PpsSize - assumed 'PpsSize' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 8

Call-time pass-by-reference has been removed

In class.ole_pps_root.php, the line

array_push($raList, &$aThis[0]);

shows an error: PHP Fatal error: Call-time pass-by-reference has been removed in /home/vagrant/app/vendor/thoroc/php_ole/src/class.ole_pps_root.php on line 305

I think this can be removed but I'm not sure what this does

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.