Comments (5)
As a start:
diff --git a/library/Kaltura/Client/Base.php b/library/Kaltura/Client/Base.php
index b4a10839..c758fcb3 100644
--- a/library/Kaltura/Client/Base.php
+++ b/library/Kaltura/Client/Base.php
@@ -267,7 +267,7 @@ class Base
*/
protected function ksortRecursive(&$array, $flags = null)
{
- ksort($array, $flags);
+ ksort($array, isset($flags) ? $flags : SORT_REGULAR);
foreach($array as &$arr) {
if(is_array($arr))
$this->ksortRecursive($arr, $flags);
diff --git a/library/Kaltura/Client/ParseUtils.php b/library/Kaltura/Client/ParseUtils.php
index 3d0f589d..784ed1a1 100644
--- a/library/Kaltura/Client/ParseUtils.php
+++ b/library/Kaltura/Client/ParseUtils.php
@@ -45,7 +45,7 @@ class ParseUtils
public static function unmarshalObject(\SimpleXMLElement $xml, $fallbackType = null)
{
- $objectType = reset($xml->objectType);
+ $objectType = (string) $xml->objectType;
$type = TypeMap::getZendType($objectType);
if(!class_exists($type)) {
$type = TypeMap::getZendType($fallbackType);
from clients-generator.
One would probably want to run static analysis (with for example phpstan or psalm) on it to find more.
from clients-generator.
Hi @bircher ,
Thank you for your report.
Would you like to submit a pull that addresses this? (the code is here https://github.com/kaltura/clients-generator/tree/Quasar-17.19.0/sources/php53/library/Kaltura/Client/Base.php).
That way, you'll get attribution, which is always best, IMHO.
Cheers
from clients-generator.
Hi @bircher,
Thank for you reporting an issue and helping improve Kaltura!
To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):
- Is the issue you're experiencing consistent and across platforms? or does it only happens on certain conditions?
please provide as much details as possible. - Which Kaltura deployment you're using: Kaltura SaaS, or self-hosted?
If self hosted, are you using the RPM or deb install? - Packages installed.
When using RPM, paste the output for:
# rpm -qa \"kaltura*\"
For deb based systems:
# dpkg -l \"kaltura-*\"
- If running a self hosted ENV - provide the MySQL server version used
- If running a self hosted ENV - is this a single all in 1 server or a cluster?
- If running a self hosted ENV, while making the problematic request, run:
# tail -f /opt/kaltura/log/*.log /opt/kaltura/log/batch/*.log | grep -A 1 -B 1 --color \"ERR:\|PHP\|trace\|CRIT\|\[error\]\"
and paste the output.
- When relevant, provide any screenshots or screen recordings showing the issue you're experiencing.
For general troubleshooting see:
https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.13.0/doc/kaltura-packages-faq.md#troubleshooting-help
If you only have a general question rather than a bug report, please close this issue and post at:
http://forum.kaltura.org
Thank you in advance,
from clients-generator.
Hi @bircher ,
Both issues were addressed. See:
#757
#755
Thanks again for reporting,
from clients-generator.
Related Issues (20)
- Feature request - action execution callbacks HOT 3
- 'KalturaClient' object has no attribute 'elasticsearch' HOT 6
- AttributeError: 'PluginServicesProxy' object has no attribute 'add' HOT 3
- NameError: name 'KalturaBulkUploadXmlJobData' is not defined HOT 4
- TestMe and TestMeDocs clients and the confMaps service
- Exception when adding streams to KalturaMediaEntry HOT 2
- Error in nodejs client when body includes unicode HOT 17
- Kaltura PHP5 API Client uses curl_exec without proper validation. HOT 1
- Python KalturaClient throws a SyntaxError during initialization HOT 2
- [Feature Request] Support go HOT 2
- License of generated code HOT 1
- Regarding the Errors of "clients-generator" HOT 2
- Regarding the Error Of "Clients-Generator" HOT 3
- Python undefined name `postResult` used before defined HOT 2
- captionAsset.serve and captionAsset.serveAsJson do not exist as a function
- java client can't be used due to org.json vulnerability
- PHP String could not be parsed as XML
- Python client needs lxml now to run and doesn't include it as an install_requires
- Gson Reflection in Java 17 Compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clients-generator.