# |
Jun 11th 2019, 15:58 |
noel |
bizarrely after all my failed attempts to install intl.. I tried composer again and now it's working :man-shrugging: |
# |
Jun 11th 2019, 15:48 |
hochwender |
Reporting my question: I'm using attempting to use the CakePHP 3 Driver for Oracle Database to call a stored procedure. Can someone point me to a working example? I'm unable to make it work. |
# |
Jun 11th 2019, 15:47 |
noel |
Also just noticed that my PHP info seems to think that intl is configured. It shows `--enable-int` |
# |
Jun 11th 2019, 15:41 |
steinkel |
try using --ignore-platform-reqs |
# |
Jun 11th 2019, 15:40 |
steinkel |
composer is the problem? |
# |
Jun 11th 2019, 15:33 |
noel |
@steinkel problem is that cakephp won't even install for me without intl. |
# |
Jun 11th 2019, 15:33 |
Arckame |
using a manual 'join' in a query don't return the joined table fields. Did i miss something or the fields must be manually added in 'select()' |
# |
Jun 11th 2019, 15:32 |
Arckame |
hello |
# |
Jun 11th 2019, 15:30 |
steinkel |
@noel check https://github.com/CakeDC/Intl it could help to bypass this issue if you don't really need intl |
# |
Jun 11th 2019, 15:28 |
JDD_Canada |
I have thre dev machines, both win and *nix, I use docker, just sync my docker file, it works a treat for dev |
# |
Jun 11th 2019, 15:24 |
ricksaccous |
lol |
# |
Jun 11th 2019, 15:24 |
ricksaccous |
disregard it actually |
# |
Jun 11th 2019, 15:24 |
ricksaccous |
that was written in 2014 |
# |
Jun 11th 2019, 15:23 |
ricksaccous |
https://pagegwood.com/web-development/how-to-enable-intl-extension-mamp-osx-10-9-2/ |
# |
Jun 11th 2019, 15:13 |
JDD_Canada |
looking like* |
# |
Jun 11th 2019, 15:13 |
noel |
Still don't understand why none of this was a problem on my last Mojave MAMP PRO setup. I never went through any of this... it just worked out the box. |
# |
Jun 11th 2019, 15:13 |
JDD_Canada |
This is loking liek a rabbit hole right now |
# |
Jun 11th 2019, 15:12 |
JDD_Canada |
doh, sorry, my mac experience is limited ot an old junker I have only to run xcode like, once every two years. It might be easier to either setup a docker in your ide, or re download mamp , and check for options to include intl |
# |
Jun 11th 2019, 15:11 |
noel |
https://bugs.php.net/bug.php?id=72879 |
# |
Jun 11th 2019, 15:10 |
noel |
... which I solved with `brew install icu4c`... but then `make` fails :face_vomiting: |
# |
Jun 11th 2019, 15:05 |
noel |
which I solved with `brew install autoconf` however `pecl install intl` then asks: `Specify where ICU libraries and headers can be found [DEFAULT]`. I assume I don't have the ICU libraries and headers? |
# |
Jun 11th 2019, 15:02 |
noel |
@JDD_Canada `pecl install intl` gives the following error: `Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. ERROR: `phpize' failed` |
# |
Jun 11th 2019, 14:18 |
JDD_Canada |
then it should show up in your php.ini |
# |
Jun 11th 2019, 14:18 |
JDD_Canada |
in a terminal do pecl install intl |
# |
Jun 11th 2019, 14:18 |
JDD_Canada |
ah , it might be a bit different on mac...you might need to install it |
# |
Jun 11th 2019, 14:16 |
noel |
@JDD_Canada thanks that sounds easy! However I'm not seeing a line like that in the php.ini file. |
# |
Jun 11th 2019, 14:14 |
conehead |
``` object(Cake\Chronos\MutableDateTime) { 'hasFixedNow' => false, 'time' => '2020-01-01 13:37:12.000000', 'timezone' => 'Europe/Berlin' } ``` |
# |
Jun 11th 2019, 14:14 |
conehead |
@kaliel This is working fine for me. But I have to leave now :( ``` $date = new FrozenDate('2020-01-01'); $time = new FrozenTime('2020-02-02 13:37:12'); $time = $time->toMutable(); $time->setDate($date->year, $date->month, $date->day); ``` |
# |
Jun 11th 2019, 14:11 |
JDD_Canada |
in your mamp, click the config under apache, select php.. in the php.ini file, remove the ; from the line that says extension intl |
# |
Jun 11th 2019, 14:10 |
noel |
re: vagrant, oh god no.. been there, done that, got the tomb stone. |
# |
Jun 11th 2019, 14:09 |
ricksaccous |
if you want a consistent dev env use vagrant |
# |
Jun 11th 2019, 14:08 |
ricksaccous |
who knows, lol |
# |
Jun 11th 2019, 14:08 |
ricksaccous |
you probably just have to uncomment a line in your php ini then restart it or something |
# |
Jun 11th 2019, 14:07 |
noel |
Yeah, I get that but I've never installed extensions for MAMP PRO and it has worked in the past. So I don't understand why it doesn't work now. |
# |
Jun 11th 2019, 14:06 |
ricksaccous |
you don't have the intl extension installed |
# |
Jun 11th 2019, 14:06 |
ricksaccous |
the error is pretty self-explanatory |
# |
Jun 11th 2019, 14:06 |
noel |
Hi all. I'm trying to install CakePHP 3.7 on MacOS Mojave and MAMP PRO 5 – and getting errors: ``` - cakephp/cakephp 3.7.8 requires ext-intl * -> the requested PHP extension intl is missing from your system. ``` I didn't have this issue on my previous computer (which was exactly the same stack). Any clues? |
# |
Jun 11th 2019, 13:52 |
kaliel |
i trioed to use $datetime->toMutable() but it returns a date without time :S |
# |
Jun 11th 2019, 13:51 |
conehead |
Well you can still create a new FrozenDate-Object with the data of those two |
# |
Jun 11th 2019, 13:50 |
kaliel |
@conehead yes !!! i'll try it but since it's immutable i htink it will fail |
# |
Jun 11th 2019, 13:33 |
conehead |
`$time->setDate($date->year, $date->month, $date->day);`? |