henrywood

Results 21 comments of henrywood

@nanosonde Thanks for getting back to me ! I'll try to propose the change/idea to @vjardin then ! Also, thank you for your work on BCGen !

@dealfonso Thanks ! I don't know how I was able to overlook that method :)

This line: https://github.com/dealfonso/sapp/blob/main/src/PDFDoc.php#L1076C1-L1076C60 throws a TypeError on some signed PDFs: PHP Warning: Undefined array key 0 in /tmp/sapp/vendor/ddn/sapp/src/PDFDoc.php on line 1076 PHP Fatal error: Uncaught TypeError: Unsupported operand types: array...

Works: [pdf_digital_signature_timestamp.pdf](https://github.com/dealfonso/sapp/files/12841164/pdf_digital_signature_timestamp.pdf) Produces the typeError above: [sample01.pdf](https://github.com/dealfonso/sapp/files/12841165/sample01.pdf)

But can't STDIN be reset / closed once it has been read by stream_get_contents(STDIN); ? such that it appears pristine to Prompts (when hitting the text() call) ?

Unfortunately that does not work. 'make' command yields this: ```bash [ 93%] Built target kphp2cpp_src Scanning dependencies of target unittests-compiler [ 93%] Building CXX object CMakeFiles/unittests-compiler.dir/tests/cpp/compiler/_compiler-tests-env.cpp.o [ 93%] Built target...

Now do did: ```bash root@HSLAPTOP-ASUS:/tmp/kphp/build# cmake .. -DDOWNLOAD_MISSING_LIBRARIES=Off -- GIT_BRANCH="master" ; GIT_COMMIT="08e4a29839860e4283efce775c52fca2360b98d2" ; BUILD_TIMESTAMP="1723019602" -- CMAKE_INSTALL_PREFIX="/." ; CPACK_PACKAGING_INSTALL_PREFIX="/." -- PDO_LIBS_STATIC_LINKING="OFF" -- PDO_DRIVER_MYSQL="OFF" -- PDO_DRIVER_PGSQL="OFF" -- KPHP_TESTS="ON" -- KPHP_CUSTOM_CMAKE="OFF" -- COMPILE_RUNTIME_LIGHT="OFF"...

I am guessing the troubles have something to do with OpenSSL version ?

By upgrading the Ubuntu 20.04 machine to Ubuntu 22.04, I was able to get KPHP to compile. ```bash root@HSLAPTOP-ASUS:/home/henrik# kphp --version kphp2cpp compiled at Aug 7 2024 20:49:36 CEST by...

I think the solution is this after installing the DEBs ```bash grep -q "KPHP_PATH=" /etc/environment || echo 'KPHP_PATH="/usr/share/vkontakte/kphp_source/"' | sudo tee -a /etc/environment > /dev/null export KPHP_PATH="/usr/share/vkontakte/kphp_source/" ```