ThomasWeinert
Repos
74
Followers
80
Following
16

A fluent api for working with XML in PHP

338
19

Node AddOn Api module for Canon cameras

28
7

PHP physical computing

28
2

PHP Extension Feature Samples

C
56
5

Embed live local media (including video) into a reveal.js presentation

28
6

Badges for reveal.js

Events

Update Prism Screenshot

Add Social Card Image

Created at 1 month ago

Add Faker Option To Title Field

Created at 1 month ago

Refactor Example Data For Mock Server

Add Prism Mock Server

Use UUIDs In Static Examples

Created at 1 month ago

Add Image For Mock Slide

Created at 1 month ago

Fix Angular Mock File Name

Created at 1 month ago

Fix Angular Mock Function Name

Created at 1 month ago

Add Angular Mocks

Update Contact Information / Add Icons

Add Development Cycle Comic Strip

Created at 1 month ago

Add Mastdon Contact

Created at 1 month ago
Fixed building Phar.

Hello,

I've fixed building the PHAR file with Phing and made many improvements to the build system. I had to remove Phive, because it couldn't install a newer version of Phing.

Changes:

  • Fixed: building phar file
  • Fixed: install dependencies with Composer; remove Phive
  • Added: .gitattibutes for smaller download size
  • Added: build PHAR with Github Action
  • Updated README
  • Fixed: data providers in unit tests must be static

I hope you like those changes.

Danke.

Created at 2 months ago

Fixed building Phar.

  • Fixed: building phar file
  • Fixed: install dependencies with Composer; remove Phive
  • Added: .gitattibutes for smaller download size
  • Added: build PHAR with Github Action
  • Updated README
  • Fixed: data providers in unit tests must be static

Merge pull request #12 from fabiang/fix-build-envi

Fixed building Phar.

Created at 2 months ago
delete branch
ThomasWeinert delete branch master
Created at 2 months ago
create branch
ThomasWeinert create branch main
Created at 2 months ago

Rename "master", Improve Graphics, Add Hooks

Created at 2 months ago
opened issue
Setting DOMAttr::textContent results in an empty attribute value.

Description

The following code:

<?php
$document = new DOMDocument();
$document->loadXML('<element attribute="value"/>');
$attribute = $document->documentElement->getAttributeNode('attribute');

// output loaded attribute value
var_dump($attribute->textContent);

// change value
$attribute->textContent = 'new value';

// output changed value
var_dump($attribute->textContent);

Resulted in this output:

string(5) "value"
string(0) ""

But I expected this output instead:

string(5) "value"
string(9) "new value"

https://3v4l.org/ouRV0

This work in PHP Versions 5.6.1 to 5.6.13, it is broken for any PHP version after that.

PHP Version

PHP 8.2.1

Operating System

No response

Created at 2 months ago
issue comment
Set DOMAttr::$value and DOMAttr::$nodeValue without expanding entities

It seems that DOMAttr::$textContent is broken, too (since PHP 5.6.14). Writing the property results in an empty value. Should this be addressed in this issue or to a separate one?

Created at 2 months ago